le_bootReason_interface.h
Go to the documentation of this file.
23 * power state may occur through various sources (e.g., GPIO pins or timers that are specific to the77 //--------------------------------------------------------------------------------------------------81 //--------------------------------------------------------------------------------------------------84 //--------------------------------------------------------------------------------------------------87 * Connect the current client thread to the service providing this API. Block until the service is91 * called before any other functions in this API. Normally, ConnectService is automatically called96 //--------------------------------------------------------------------------------------------------102 //--------------------------------------------------------------------------------------------------105 * Try to connect the current client thread to the service providing this API. Return with an error108 * For each thread that wants to use this API, either ConnectService or TryConnectService must be109 * called before any other functions in this API. Normally, ConnectService is automatically called118 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).121 //--------------------------------------------------------------------------------------------------127 //--------------------------------------------------------------------------------------------------131 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants134 //--------------------------------------------------------------------------------------------------141 //--------------------------------------------------------------------------------------------------147 * longer a connection to the service, and the functions in this API can't be used. For details, see152 //--------------------------------------------------------------------------------------------------159 //--------------------------------------------------------------------------------------------------167 //--------------------------------------------------------------------------------------------------173 //--------------------------------------------------------------------------------------------------181 * @note The process exits if invalid gpio number is passed. Check corresponding device documents184 //--------------------------------------------------------------------------------------------------191 //--------------------------------------------------------------------------------------------------203 //--------------------------------------------------------------------------------------------------bool le_bootReason_WasGpio(uint32_t gpioNum)le_result_t le_bootReason_TryConnectService(void)void le_bootReason_DisconnectService(void)bool le_bootReason_WasAdc(uint32_t adcNum)void le_bootReason_ConnectService(void)void(* le_bootReason_DisconnectHandler_t)(void *)Definition: le_bootReason_interface.h:82bool le_bootReason_WasTimer(void)LE_FULL_API void le_bootReason_SetServerDisconnectHandler(le_bootReason_DisconnectHandler_t disconnectHandler, void *contextPtr)