AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/demo/object/ao.c
unsigned Analog_Output_Instance_To_Index(
    uint32_t object_instance)
{
    unsigned index = MAX_ANALOG_OUTPUTS;

    if (object_instance < MAX_ANALOG_OUTPUTS)
        index = object_instance;

    return index;
}
/* we simply have 0-n object instances.  Yours might be */
/* more complex, and then you need to return the index */
/* that correlates to the correct instance number */
we simply have 0-n object instances.  Yours might be
more complex, and then you need to return the index
that correlates to the correct instance number
we simply have 0 - n object instances . Yours might be more complex and then you need to return the index that correlates to the correct instance number
unsigned Analog_Output_Instance_To_Index(
    uint32_t object_instance)
{
    unsigned index = MAX_ANALOG_OUTPUTS;
    if (object_instance < MAX_ANALOG_OUTPUTS)
        index = object_instance;
    return index;
}
unsigned Analog_Output_Instance_To_Index ( uint32_t object_instance ) { unsigned index = MAX_ANALOG_OUTPUTS ; if ( object_instance < MAX_ANALOG_OUTPUTS ) index = object_instance ; return index ; }
we simply have 0-n object instances.
we simply have 0 - n object instances .