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

    index = Lighting_Output_Instance_To_Index(object_instance);
    if (index < MAX_LIGHTING_OUTPUTS) {
        if (priority && (priority <= BACNET_MAX_PRIORITY)) {
            priority--;
            if (BIT_CHECK(Lighting_Output[index].Priority_Active_Bits, priority)) {
                status = true;
            }
        }
    }

    return status;
}
/**
 * For a given object instance-number, determines if the given priority
 * is active or NULL.
 *
 * @param  object_instance - object-instance number of the object
 * @param  priority - priority 1..16
 *
 * @return  true if the priority slot is active
 */
For a given object instance-number, determines if the given priority
is active or NULL.

@param  object_instance - object-instance number of the object
@param  priority - priority 1..16

@return  true if the priority slot is active
For a given object instance - number determines if the given priority is active or NULL . @param object_instance - object - instance number of the object @param priority - priority 1 .. 16 @return true if the priority slot is active
static bool Lighting_Output_Priority_Active(
    uint32_t object_instance,
    unsigned priority)
{
    bool status = false;
    unsigned index = 0;
    index = Lighting_Output_Instance_To_Index(object_instance);
    if (index < MAX_LIGHTING_OUTPUTS) {
        if (priority && (priority <= BACNET_MAX_PRIORITY)) {
            priority--;
            if (BIT_CHECK(Lighting_Output[index].Priority_Active_Bits, priority)) {
                status = true;
            }
        }
    }
    return status;
}
static bool Lighting_Output_Priority_Active ( uint32_t object_instance , unsigned priority ) { bool status = false ; unsigned index = 0 ; index = Lighting_Output_Instance_To_Index ( object_instance ) ; if ( index < MAX_LIGHTING_OUTPUTS ) { if ( priority && ( priority <= BACNET_MAX_PRIORITY ) ) { priority -- ; if ( BIT_CHECK ( Lighting_Output [ index ] . Priority_Active_Bits , priority ) ) { status = true ; } } } return status ; }
For a given object instance-number, determines if the given priority
 is active or NULL.
For a given object instance - number determines if the given priority is active or NULL .