le_ulpm_interface.h
Go to the documentation of this file.
17 * This API is used to set the boot sources and switch the device to ultra-low power state. Ultra-55 * LE_ERROR_IF(le_ulpm_BootOnGpio(36, LE_ULPM_GPIO_HIGH) != LE_OK, "Can't set gpio36 as boot source");58 * LE_ERROR_IF(le_ulpm_BootOnGpio(38, LE_ULPM_GPIO_LOW) != LE_OK, "Can't set gpio38 as boot source");84 //--------------------------------------------------------------------------------------------------87 * Connect the current client thread to the service providing this API. Block until the service is91 * called before any other functions in this API. Normally, ConnectService is automatically called96 //--------------------------------------------------------------------------------------------------102 //--------------------------------------------------------------------------------------------------105 * Try to connect the current client thread to the service providing this API. Return with an error108 * For each thread that wants to use this API, either ConnectService or TryConnectService must be109 * called before any other functions in this API. Normally, ConnectService is automatically called116 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.117 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).120 //--------------------------------------------------------------------------------------------------126 //--------------------------------------------------------------------------------------------------132 * longer a connection to the service, and the functions in this API can't be used. For details, see137 //--------------------------------------------------------------------------------------------------144 //--------------------------------------------------------------------------------------------------148 //--------------------------------------------------------------------------------------------------152 //--------------------------------------------------------------------------------------------------156 //--------------------------------------------------------------------------------------------------179 //--------------------------------------------------------------------------------------------------187 * @note The process exits if invalid gpio number is passed. Check corresponding device documents190 //--------------------------------------------------------------------------------------------------200 //--------------------------------------------------------------------------------------------------209 //--------------------------------------------------------------------------------------------------217 //--------------------------------------------------------------------------------------------------226 //--------------------------------------------------------------------------------------------------236 //--------------------------------------------------------------------------------------------------246 //--------------------------------------------------------------------------------------------------le_result_t le_ulpm_ShutDown(void)le_result_t le_ulpm_GetFirmwareVersion(char *version, size_t versionNumElements)void le_ulpm_DisconnectService(void)void le_ulpm_ConnectService(void)le_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)