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 the70 //--------------------------------------------------------------------------------------------------74 //--------------------------------------------------------------------------------------------------77 //--------------------------------------------------------------------------------------------------80 * Connect the current client thread to the service providing this API. Block until the service is84 * called before any other functions in this API. Normally, ConnectService is automatically called89 //--------------------------------------------------------------------------------------------------95 //--------------------------------------------------------------------------------------------------98 * Try to connect the current client thread to the service providing this API. Return with an error101 * For each thread that wants to use this API, either ConnectService or TryConnectService must be102 * called before any other functions in this API. Normally, ConnectService is automatically called111 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).114 //--------------------------------------------------------------------------------------------------120 //--------------------------------------------------------------------------------------------------124 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants127 //--------------------------------------------------------------------------------------------------134 //--------------------------------------------------------------------------------------------------140 * longer a connection to the service, and the functions in this API can't be used. For details, see145 //--------------------------------------------------------------------------------------------------152 //--------------------------------------------------------------------------------------------------160 //--------------------------------------------------------------------------------------------------166 //--------------------------------------------------------------------------------------------------174 * @note The process exits if invalid gpio number is passed. Check corresponding device documents177 //--------------------------------------------------------------------------------------------------184 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------203 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------220 //--------------------------------------------------------------------------------------------------228 //--------------------------------------------------------------------------------------------------239 //--------------------------------------------------------------------------------------------------247 //--------------------------------------------------------------------------------------------------256 //--------------------------------------------------------------------------------------------------264 //--------------------------------------------------------------------------------------------------275 //--------------------------------------------------------------------------------------------------283 //--------------------------------------------------------------------------------------------------292 //--------------------------------------------------------------------------------------------------300 //--------------------------------------------------------------------------------------------------309 //--------------------------------------------------------------------------------------------------317 //--------------------------------------------------------------------------------------------------le_result_t le_bootReason_GetGpioCount(uint8_t *gpioArrayPtr, size_t *gpioArraySizePtr)le_result_t le_bootReason_GetShutdownStrategy(char *buf, size_t bufSize)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)le_result_t le_bootReason_GetTimerInfo(char *buf, size_t bufSize)void(* le_bootReason_DisconnectHandler_t)(void *)Definition: le_bootReason_interface.h:75le_result_t le_bootReason_GetAdcCount(uint8_t *adcArrayPtr, size_t *adcArraySizePtr)le_result_t le_bootReason_GetGpioInfo(char *buf, size_t bufSize, const char *LE_NONNULL gpio)le_result_t le_bootReason_GetAdcInfo(char *buf, size_t bufSize, const char *LE_NONNULL adc)le_result_t le_bootReason_GetAdcInterval(char *buf, size_t bufSize)bool le_bootReason_WasTimer(void)LE_FULL_API void le_bootReason_SetServerDisconnectHandler(le_bootReason_DisconnectHandler_t disconnectHandler, void *contextPtr)