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");87 //--------------------------------------------------------------------------------------------------91 //--------------------------------------------------------------------------------------------------94 //--------------------------------------------------------------------------------------------------97 * Connect the current client thread to the service providing this API. Block until the service is100 * For each thread that wants to use this API, either ConnectService or TryConnectService must be101 * called before any other functions in this API. Normally, ConnectService is automatically called106 //--------------------------------------------------------------------------------------------------112 //--------------------------------------------------------------------------------------------------115 * Try to connect the current client thread to the service providing this API. Return with an error118 * For each thread that wants to use this API, either ConnectService or TryConnectService must be119 * called before any other functions in this API. Normally, ConnectService is automatically called128 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).131 //--------------------------------------------------------------------------------------------------137 //--------------------------------------------------------------------------------------------------141 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants144 //--------------------------------------------------------------------------------------------------151 //--------------------------------------------------------------------------------------------------157 * longer a connection to the service, and the functions in this API can't be used. For details, see162 //--------------------------------------------------------------------------------------------------169 //--------------------------------------------------------------------------------------------------173 //--------------------------------------------------------------------------------------------------176 //--------------------------------------------------------------------------------------------------180 //--------------------------------------------------------------------------------------------------199 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------220 //--------------------------------------------------------------------------------------------------232 //--------------------------------------------------------------------------------------------------240 //--------------------------------------------------------------------------------------------------248 * operational ranges. The first is any reading less than bootBelowAdcReading and the second is any262 //--------------------------------------------------------------------------------------------------275 //--------------------------------------------------------------------------------------------------284 //--------------------------------------------------------------------------------------------------293 //--------------------------------------------------------------------------------------------------304 //--------------------------------------------------------------------------------------------------le_result_t le_ulpm_GetFirmwareVersion(char *version, size_t versionSize)le_result_t le_ulpm_ShutDown(void)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:92le_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)