le_bootReason_interface.h
Go to the documentation of this file.
21 * power state may occur through various sources (e.g., GPIO pins or timers that are specific to the69 //--------------------------------------------------------------------------------------------------72 * Connect the current client thread to the service providing this API. Block until the service is76 * called before any other functions in this API. Normally, ConnectService is automatically called81 //--------------------------------------------------------------------------------------------------87 //--------------------------------------------------------------------------------------------------90 * Try to connect the current client thread to the service providing this API. Return with an error94 * called before any other functions in this API. Normally, ConnectService is automatically called101 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.102 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).105 //--------------------------------------------------------------------------------------------------111 //--------------------------------------------------------------------------------------------------117 * longer a connection to the service, and the functions in this API can't be used. For details, see122 //--------------------------------------------------------------------------------------------------128 //--------------------------------------------------------------------------------------------------136 //--------------------------------------------------------------------------------------------------142 //--------------------------------------------------------------------------------------------------150 * @note The process exits if invalid gpio number is passed. Check corresponding device documents153 //--------------------------------------------------------------------------------------------------le_result_t le_bootReason_TryConnectService(void)bool le_bootReason_WasGpio(uint32_t gpioNum)bool le_bootReason_WasTimer(void)void le_bootReason_ConnectService(void)void le_bootReason_DisconnectService(void)