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");88 //--------------------------------------------------------------------------------------------------92 //--------------------------------------------------------------------------------------------------95 //--------------------------------------------------------------------------------------------------98 * Connect the current client thread to the service providing this API. Block until the service is101 * 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 called107 //--------------------------------------------------------------------------------------------------113 //--------------------------------------------------------------------------------------------------116 * Try to connect the current client thread to the service providing this API. Return with an error119 * For each thread that wants to use this API, either ConnectService or TryConnectService must be120 * called before any other functions in this API. Normally, ConnectService is automatically called129 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).132 //--------------------------------------------------------------------------------------------------138 //--------------------------------------------------------------------------------------------------142 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants145 //--------------------------------------------------------------------------------------------------152 //--------------------------------------------------------------------------------------------------158 * longer a connection to the service, and the functions in this API can't be used. For details, see163 //--------------------------------------------------------------------------------------------------170 //--------------------------------------------------------------------------------------------------174 //--------------------------------------------------------------------------------------------------177 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------198 //--------------------------------------------------------------------------------------------------210 //--------------------------------------------------------------------------------------------------218 //--------------------------------------------------------------------------------------------------226 * operational ranges. The first is any reading less than bootBelowAdcReading and the second is any240 //--------------------------------------------------------------------------------------------------253 //--------------------------------------------------------------------------------------------------262 //--------------------------------------------------------------------------------------------------271 //--------------------------------------------------------------------------------------------------282 //--------------------------------------------------------------------------------------------------le_result_t le_ulpm_GetFirmwareVersion(char *version, size_t versionSize)le_result_t le_ulpm_ShutDown(void)LE_FULL_API void le_ulpm_SetServerDisconnectHandler(le_ulpm_DisconnectHandler_t disconnectHandler, void *contextPtr)void le_ulpm_DisconnectService(void)le_result_t le_ulpm_BootOnAdc(uint32_t adcNum, uint32_t pollIntervalInMs, double bootAboveAdcReading, double bootBelowAdcReading)void le_ulpm_ConnectService(void)void(* le_ulpm_DisconnectHandler_t)(void *)Definition: le_ulpm_interface.h:93le_result_t le_ulpm_BootOnGpio(uint32_t gpioNum, le_ulpm_GpioState_t state)le_result_t le_ulpm_BootOnTimer(uint32_t expiryVal)le_result_t le_ulpm_TryConnectService(void)