AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/demo/object/lo.c
static void Lighting_Output_Timer_Handler(
    unsigned index,
    uint16_t milliseconds)
{
    struct lighting_output_object *pLight = NULL;
    BACNET_LIGHTING_COMMAND *pCommand = NULL;

    if (index < MAX_LIGHTING_OUTPUTS) {
        pLight = &Lighting_Output[index];
        pCommand = &pLight->Lighting_Command;
        switch (pCommand->operation) {
            case BACNET_LIGHTS_NONE:
                break;
            case BACNET_LIGHTS_FADE_TO:
                Lighting_Output_Fade_Handler(pLight, pCommand, milliseconds);
                break;
            case BACNET_LIGHTS_RAMP_TO:
                Lighting_Output_Ramp_Handler(pLight, pCommand, milliseconds);
                break;
            case BACNET_LIGHTS_STEP_UP:
                break;
            case BACNET_LIGHTS_STEP_DOWN:
                break;
            case BACNET_LIGHTS_STEP_ON:
                break;
            case BACNET_LIGHTS_STEP_OFF:
                break;
            case BACNET_LIGHTS_WARN:
                break;
            case BACNET_LIGHTS_WARN_OFF:
                break;
            case BACNET_LIGHTS_WARN_RELINQUISH:
                break;
            case BACNET_LIGHTS_STOP:
                break;
            default:
                break;
        }
    }
}
/**
 * Handles the timing for a single Lighting Output object
 *
 * @param index - 0..MAX_LIGHTING_OUTPUTS value
 * @param milliseconds - number of milliseconds elapsed since previously
 * called.  Works best when called about every 10 milliseconds.
 */
Handles the timing for a single Lighting Output object
@param index - 0..MAX_LIGHTING_OUTPUTS value
@param milliseconds - number of milliseconds elapsed since previously
called.  Works best when called about every 10 milliseconds.
Handles the timing for a single Lighting Output object @param index - 0 .. MAX_LIGHTING_OUTPUTS value @param milliseconds - number of milliseconds elapsed since previously called . Works best when called about every 10 milliseconds .
static void Lighting_Output_Timer_Handler(
    unsigned index,
    uint16_t milliseconds)
{
    struct lighting_output_object *pLight = NULL;
    BACNET_LIGHTING_COMMAND *pCommand = NULL;
    if (index < MAX_LIGHTING_OUTPUTS) {
        pLight = &Lighting_Output[index];
        pCommand = &pLight->Lighting_Command;
        switch (pCommand->operation) {
            case BACNET_LIGHTS_NONE:
                break;
            case BACNET_LIGHTS_FADE_TO:
                Lighting_Output_Fade_Handler(pLight, pCommand, milliseconds);
                break;
            case BACNET_LIGHTS_RAMP_TO:
                Lighting_Output_Ramp_Handler(pLight, pCommand, milliseconds);
                break;
            case BACNET_LIGHTS_STEP_UP:
                break;
            case BACNET_LIGHTS_STEP_DOWN:
                break;
            case BACNET_LIGHTS_STEP_ON:
                break;
            case BACNET_LIGHTS_STEP_OFF:
                break;
            case BACNET_LIGHTS_WARN:
                break;
            case BACNET_LIGHTS_WARN_OFF:
                break;
            case BACNET_LIGHTS_WARN_RELINQUISH:
                break;
            case BACNET_LIGHTS_STOP:
                break;
            default:
                break;
        }
    }
}
static void Lighting_Output_Timer_Handler ( unsigned index , uint16_t milliseconds ) { struct lighting_output_object * pLight = NULL ; BACNET_LIGHTING_COMMAND * pCommand = NULL ; if ( index < MAX_LIGHTING_OUTPUTS ) { pLight = & Lighting_Output [ index ] ; pCommand = & pLight -> Lighting_Command ; switch ( pCommand -> operation ) { case BACNET_LIGHTS_NONE : break ; case BACNET_LIGHTS_FADE_TO : Lighting_Output_Fade_Handler ( pLight , pCommand , milliseconds ) ; break ; case BACNET_LIGHTS_RAMP_TO : Lighting_Output_Ramp_Handler ( pLight , pCommand , milliseconds ) ; break ; case BACNET_LIGHTS_STEP_UP : break ; case BACNET_LIGHTS_STEP_DOWN : break ; case BACNET_LIGHTS_STEP_ON : break ; case BACNET_LIGHTS_STEP_OFF : break ; case BACNET_LIGHTS_WARN : break ; case BACNET_LIGHTS_WARN_OFF : break ; case BACNET_LIGHTS_WARN_RELINQUISH : break ; case BACNET_LIGHTS_STOP : break ; default : break ; } } }
Handles the timing for a single Lighting Output object
 @param index - 0..MAX_LIGHTING_OUTPUTS value
 @param milliseconds - number of milliseconds elapsed since previously
 called.
Handles the timing for a single Lighting Output object @param index - 0 .. MAX_LIGHTING_OUTPUTS value @param milliseconds - number of milliseconds elapsed since previously called .