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

    index = Lighting_Output_Instance_To_Index(object_instance);
    if ((index < MAX_LIGHTING_OUTPUTS) &&
        (percent_per_second >= 0.1) &&
        (percent_per_second <= 100.0)) {
        Lighting_Output[index].Default_Ramp_Rate = percent_per_second;
        status = true;
    }

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

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

@return true if value was set
For a given object instance - number sets the ramp - rate value of the object . @param object_instance - object - instance number of the object @param percent_per_second - holds the value to be set @return true if value was set
bool Lighting_Output_Default_Ramp_Rate_Set(
    uint32_t object_instance,
    float percent_per_second)
{
    bool status = false;
    unsigned int index = 0;
    index = Lighting_Output_Instance_To_Index(object_instance);
    if ((index < MAX_LIGHTING_OUTPUTS) &&
        (percent_per_second >= 0.1) &&
        (percent_per_second <= 100.0)) {
        Lighting_Output[index].Default_Ramp_Rate = percent_per_second;
        status = true;
    }
    return status;
}
bool Lighting_Output_Default_Ramp_Rate_Set ( uint32_t object_instance , float percent_per_second ) { bool status = false ; unsigned int index = 0 ; index = Lighting_Output_Instance_To_Index ( object_instance ) ; if ( ( index < MAX_LIGHTING_OUTPUTS ) && ( percent_per_second >= 0.1 ) && ( percent_per_second <= 100.0 ) ) { Lighting_Output [ index ] . Default_Ramp_Rate = percent_per_second ; status = true ; } return status ; }
For a given object instance-number, sets the ramp-rate value of the
 object.
For a given object instance - number sets the ramp - rate value of the object .