AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/demo/object/lo.c
bool Lighting_Output_Default_Fade_Time_Set(
    uint32_t object_instance,
    uint32_t milliseconds)
{
    bool status = false;
    unsigned int index = 0;

    index = Lighting_Output_Instance_To_Index(object_instance);
    if ((index < MAX_LIGHTING_OUTPUTS) &&
        (milliseconds >= 100) &&
        (milliseconds <= 86400000)) {
        Lighting_Output[index].Default_Fade_Time = milliseconds;
        status = true;
    }

    return status;
}
/**
 * For a given object instance-number, sets the fade-time
 * property value of the object.
 *
 * @param object_instance - object-instance number of the object
 * @param milliseconds - holds the value to be set
 *
 * @return true if value was set
 */
For a given object instance-number, sets the fade-time
property value of the object.

@param object_instance - object-instance number of the object
@param milliseconds - holds the value to be set

@return true if value was set
For a given object instance - number sets the fade - time property value of the object . @param object_instance - object - instance number of the object @param milliseconds - holds the value to be set @return true if value was set
bool Lighting_Output_Default_Fade_Time_Set(
    uint32_t object_instance,
    uint32_t milliseconds)
{
    bool status = false;
    unsigned int index = 0;
    index = Lighting_Output_Instance_To_Index(object_instance);
    if ((index < MAX_LIGHTING_OUTPUTS) &&
        (milliseconds >= 100) &&
        (milliseconds <= 86400000)) {
        Lighting_Output[index].Default_Fade_Time = milliseconds;
        status = true;
    }
    return status;
}
bool Lighting_Output_Default_Fade_Time_Set ( uint32_t object_instance , uint32_t milliseconds ) { bool status = false ; unsigned int index = 0 ; index = Lighting_Output_Instance_To_Index ( object_instance ) ; if ( ( index < MAX_LIGHTING_OUTPUTS ) && ( milliseconds >= 100 ) && ( milliseconds <= 86400000 ) ) { Lighting_Output [ index ] . Default_Fade_Time = milliseconds ; status = true ; } return status ; }
For a given object instance-number, sets the fade-time
 property value of the object.
For a given object instance - number sets the fade - time property value of the object .