src/luos.c
static uint16_t Luos_GetServiceIndex(service_t *service)
{
    for (uint16_t i = 0; i < service_number; i++)
    {
        if (service == &service_table[i])
        {
            return i;
        }
    }
    return 0xFFFF;
}
/******************************************************************************
 * @brief get this index of the service
 * @param service
 * @return service from list
 ******************************************************************************/
@brief get this index of the service
@param service
@return service from list
@brief get this index of the service @param service @return service from list
static uint16_t Luos_GetServiceIndex(service_t *service)
{
    for (uint16_t i = 0; i < service_number; i++)
    {
        if (service == &service_table[i])
        {
            return i;
        }
    }
    return 0xFFFF;
}
static uint16_t Luos_GetServiceIndex ( service_t * service ) { for ( uint16_t i = 0 ; i < service_number ; i ++ ) { if ( service == & service_table [ i ] ) { return i ; } } return 0xFFFF ; }
@brief get this index of the service
 @param service
 @return service from list
@brief get this index of the service @param service @return service from list