AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/demo/object/lo.c
void Lighting_Output_Init(
    void)
{
    unsigned i, p;

    for (i = 0; i < MAX_LIGHTING_OUTPUTS; i++) {
        Lighting_Output[i].Present_Value = 0.0;
        Lighting_Output[i].Tracking_Value = 0.0;
        Lighting_Output[i].Physical_Value = 0.0;
        Lighting_Output[i].Lighting_Command.operation = BACNET_LIGHTS_NONE;
        Lighting_Output[i].Lighting_Command.use_target_level = false;
        Lighting_Output[i].Lighting_Command.use_ramp_rate = false;
        Lighting_Output[i].Lighting_Command.use_step_increment = false;
        Lighting_Output[i].Lighting_Command.use_fade_time = false;
        Lighting_Output[i].Lighting_Command.use_priority = false;
        Lighting_Output[i].In_Progress = BACNET_LIGHTING_IDLE;
        Lighting_Output[i].Out_Of_Service = false;
        Lighting_Output[i].Blink_Warn_Enable = false;
        Lighting_Output[i].Egress_Active = false;
        Lighting_Output[i].Egress_Time = 0;
        Lighting_Output[i].Default_Fade_Time = 100;
        Lighting_Output[i].Default_Ramp_Rate = 100.0;
        Lighting_Output[i].Default_Step_Increment = 1.0;
        Lighting_Output[i].Transition = BACNET_LIGHTING_TRANSITION_IDLE;
        Lighting_Output[i].Feedback_Value = 0.0;
        for (p = 0; p < BACNET_MAX_PRIORITY; p++) {
            Lighting_Output[i].Priority_Array[p] = 0.0;
            BIT_CLEAR(Lighting_Output[i].Priority_Active_Bits, p);
        }
        Lighting_Output[i].Relinquish_Default = 0.0;
        Lighting_Output[i].Power = 0.0;
        Lighting_Output[i].Instantaneous_Power = 0.0;
        Lighting_Output[i].Min_Actual_Value = 0.0;
        Lighting_Output[i].Max_Actual_Value = 100.0;
        Lighting_Output[i].Lighting_Command_Default_Priority = 16;
    }

    return;
}
/**
 * Initializes the Lighting Output object data
 */
Initializes the Lighting Output object data
Initializes the Lighting Output object data
void Lighting_Output_Init(
    void)
{
    unsigned i, p;
    for (i = 0; i < MAX_LIGHTING_OUTPUTS; i++) {
        Lighting_Output[i].Present_Value = 0.0;
        Lighting_Output[i].Tracking_Value = 0.0;
        Lighting_Output[i].Physical_Value = 0.0;
        Lighting_Output[i].Lighting_Command.operation = BACNET_LIGHTS_NONE;
        Lighting_Output[i].Lighting_Command.use_target_level = false;
        Lighting_Output[i].Lighting_Command.use_ramp_rate = false;
        Lighting_Output[i].Lighting_Command.use_step_increment = false;
        Lighting_Output[i].Lighting_Command.use_fade_time = false;
        Lighting_Output[i].Lighting_Command.use_priority = false;
        Lighting_Output[i].In_Progress = BACNET_LIGHTING_IDLE;
        Lighting_Output[i].Out_Of_Service = false;
        Lighting_Output[i].Blink_Warn_Enable = false;
        Lighting_Output[i].Egress_Active = false;
        Lighting_Output[i].Egress_Time = 0;
        Lighting_Output[i].Default_Fade_Time = 100;
        Lighting_Output[i].Default_Ramp_Rate = 100.0;
        Lighting_Output[i].Default_Step_Increment = 1.0;
        Lighting_Output[i].Transition = BACNET_LIGHTING_TRANSITION_IDLE;
        Lighting_Output[i].Feedback_Value = 0.0;
        for (p = 0; p < BACNET_MAX_PRIORITY; p++) {
            Lighting_Output[i].Priority_Array[p] = 0.0;
            BIT_CLEAR(Lighting_Output[i].Priority_Active_Bits, p);
        }
        Lighting_Output[i].Relinquish_Default = 0.0;
        Lighting_Output[i].Power = 0.0;
        Lighting_Output[i].Instantaneous_Power = 0.0;
        Lighting_Output[i].Min_Actual_Value = 0.0;
        Lighting_Output[i].Max_Actual_Value = 100.0;
        Lighting_Output[i].Lighting_Command_Default_Priority = 16;
    }
    return;
}
void Lighting_Output_Init ( void ) { unsigned i , p ; for ( i = 0 ; i < MAX_LIGHTING_OUTPUTS ; i ++ ) { Lighting_Output [ i ] . Present_Value = 0.0 ; Lighting_Output [ i ] . Tracking_Value = 0.0 ; Lighting_Output [ i ] . Physical_Value = 0.0 ; Lighting_Output [ i ] . Lighting_Command . operation = BACNET_LIGHTS_NONE ; Lighting_Output [ i ] . Lighting_Command . use_target_level = false ; Lighting_Output [ i ] . Lighting_Command . use_ramp_rate = false ; Lighting_Output [ i ] . Lighting_Command . use_step_increment = false ; Lighting_Output [ i ] . Lighting_Command . use_fade_time = false ; Lighting_Output [ i ] . Lighting_Command . use_priority = false ; Lighting_Output [ i ] . In_Progress = BACNET_LIGHTING_IDLE ; Lighting_Output [ i ] . Out_Of_Service = false ; Lighting_Output [ i ] . Blink_Warn_Enable = false ; Lighting_Output [ i ] . Egress_Active = false ; Lighting_Output [ i ] . Egress_Time = 0 ; Lighting_Output [ i ] . Default_Fade_Time = 100 ; Lighting_Output [ i ] . Default_Ramp_Rate = 100.0 ; Lighting_Output [ i ] . Default_Step_Increment = 1.0 ; Lighting_Output [ i ] . Transition = BACNET_LIGHTING_TRANSITION_IDLE ; Lighting_Output [ i ] . Feedback_Value = 0.0 ; for ( p = 0 ; p < BACNET_MAX_PRIORITY ; p ++ ) { Lighting_Output [ i ] . Priority_Array [ p ] = 0.0 ; BIT_CLEAR ( Lighting_Output [ i ] . Priority_Active_Bits , p ) ; } Lighting_Output [ i ] . Relinquish_Default = 0.0 ; Lighting_Output [ i ] . Power = 0.0 ; Lighting_Output [ i ] . Instantaneous_Power = 0.0 ; Lighting_Output [ i ] . Min_Actual_Value = 0.0 ; Lighting_Output [ i ] . Max_Actual_Value = 100.0 ; Lighting_Output [ i ] . Lighting_Command_Default_Priority = 16 ; } return ; }
Initializes the Lighting Output object data
Initializes the Lighting Output object data