le_ulpm_interface.h
Go to the documentation of this file.
19 * This API is used to set the boot sources and switch the device to ultra-low power state. Ultra-57 * LE_ERROR_IF(le_ulpm_BootOnGpio(36, LE_ULPM_GPIO_HIGH) != LE_OK, "Can't set gpio36 as boot source");60 * LE_ERROR_IF(le_ulpm_BootOnGpio(38, LE_ULPM_GPIO_LOW) != LE_OK, "Can't set gpio38 as boot source");92 //--------------------------------------------------------------------------------------------------96 //--------------------------------------------------------------------------------------------------99 //--------------------------------------------------------------------------------------------------102 * Connect the current client thread to the service providing this API. Block until the service is105 * For each thread that wants to use this API, either ConnectService or TryConnectService must be106 * called before any other functions in this API. Normally, ConnectService is automatically called111 //--------------------------------------------------------------------------------------------------117 //--------------------------------------------------------------------------------------------------120 * Try to connect the current client thread to the service providing this API. Return with an error123 * For each thread that wants to use this API, either ConnectService or TryConnectService must be124 * called before any other functions in this API. Normally, ConnectService is automatically called133 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).136 //--------------------------------------------------------------------------------------------------142 //--------------------------------------------------------------------------------------------------146 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants149 //--------------------------------------------------------------------------------------------------156 //--------------------------------------------------------------------------------------------------162 * longer a connection to the service, and the functions in this API can't be used. For details, see167 //--------------------------------------------------------------------------------------------------174 //--------------------------------------------------------------------------------------------------178 //--------------------------------------------------------------------------------------------------181 //--------------------------------------------------------------------------------------------------187 //--------------------------------------------------------------------------------------------------190 //--------------------------------------------------------------------------------------------------202 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------223 //--------------------------------------------------------------------------------------------------231 //--------------------------------------------------------------------------------------------------239 * operational ranges. The first is any reading less than bootBelowAdcReading and the second is any253 //--------------------------------------------------------------------------------------------------266 //--------------------------------------------------------------------------------------------------275 //--------------------------------------------------------------------------------------------------284 //--------------------------------------------------------------------------------------------------295 //--------------------------------------------------------------------------------------------------301 //--------------------------------------------------------------------------------------------------312 //--------------------------------------------------------------------------------------------------318 //--------------------------------------------------------------------------------------------------328 //--------------------------------------------------------------------------------------------------void le_ulpm_DisconnectService(void)void(* le_ulpm_DisconnectHandler_t)(void *)Definition: le_ulpm_interface.h:97le_result_t le_ulpm_BootOnTimer(uint32_t expiryVal)le_result_t le_ulpm_SetShutDownStrategy(le_ulpm_ULPSConfiguration_t ulpsConfig)void le_ulpm_ConnectService(void)le_result_t le_ulpm_ShutDown(void)le_result_t le_ulpm_BootOnGpio(uint32_t gpioNum, le_ulpm_GpioState_t state)le_result_t le_ulpm_BootOnAdc(uint32_t adcNum, uint32_t pollIntervalInMs, double bootAboveAdcReading, double bootBelowAdcReading)le_result_t le_ulpm_Reboot(void)le_result_t le_ulpm_GetFirmwareVersion(char *version, size_t versionSize)LE_FULL_API void le_ulpm_SetServerDisconnectHandler(le_ulpm_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_ulpm_TryConnectService(void)