le_gpio_interface.h
Go to the documentation of this file.
49 * - SetEdgeSense() - Set the edge sensing on an input pin (only works if you have an EventHandler).69 * - IsActive() - Is an output pin currently being driven? (corresponds to the value file in sysfs)75 * to control which GPIO pins each app is allowed to access. It also simplifies the API by removing86 * Once the GPIOXX is used, it cannot be accessed by another thread. When no longer used, it can be87 * relinquished by calling API @c le_gpioPinXX_DisconnectService. The GPIO service for GPIOXX will126 * function that should not be available to apps, then it can be disabled by adding an entry to the131 * where n is the GPIO number. The value should be set to true to disable that service. If the value132 * is either false or absent then the service will run. Entries can be added using the config tool,134 * will disable the service for pin 13. Note that specifying the type as bool is vital as the config155 //--------------------------------------------------------------------------------------------------159 //--------------------------------------------------------------------------------------------------162 //--------------------------------------------------------------------------------------------------165 * Connect the current client thread to the service providing this API. Block until the service is168 * For each thread that wants to use this API, either ConnectService or TryConnectService must be169 * called before any other functions in this API. Normally, ConnectService is automatically called174 //--------------------------------------------------------------------------------------------------180 //--------------------------------------------------------------------------------------------------183 * Try to connect the current client thread to the service providing this API. Return with an error186 * For each thread that wants to use this API, either ConnectService or TryConnectService must be187 * called before any other functions in this API. Normally, ConnectService is automatically called196 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).199 //--------------------------------------------------------------------------------------------------205 //--------------------------------------------------------------------------------------------------209 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants212 //--------------------------------------------------------------------------------------------------219 //--------------------------------------------------------------------------------------------------225 * longer a connection to the service, and the functions in this API can't be used. For details, see230 //--------------------------------------------------------------------------------------------------237 //--------------------------------------------------------------------------------------------------241 //--------------------------------------------------------------------------------------------------244 //--------------------------------------------------------------------------------------------------248 //--------------------------------------------------------------------------------------------------251 //--------------------------------------------------------------------------------------------------255 //--------------------------------------------------------------------------------------------------258 //--------------------------------------------------------------------------------------------------262 //--------------------------------------------------------------------------------------------------265 //--------------------------------------------------------------------------------------------------269 //--------------------------------------------------------------------------------------------------272 //--------------------------------------------------------------------------------------------------276 //--------------------------------------------------------------------------------------------------283 //--------------------------------------------------------------------------------------------------287 //--------------------------------------------------------------------------------------------------296 //--------------------------------------------------------------------------------------------------302 //--------------------------------------------------------------------------------------------------309 //--------------------------------------------------------------------------------------------------314 //--------------------------------------------------------------------------------------------------323 //--------------------------------------------------------------------------------------------------327 //--------------------------------------------------------------------------------------------------333 //--------------------------------------------------------------------------------------------------337 //--------------------------------------------------------------------------------------------------343 //--------------------------------------------------------------------------------------------------347 //--------------------------------------------------------------------------------------------------353 //--------------------------------------------------------------------------------------------------359 //--------------------------------------------------------------------------------------------------365 //--------------------------------------------------------------------------------------------------371 //--------------------------------------------------------------------------------------------------377 //--------------------------------------------------------------------------------------------------383 //--------------------------------------------------------------------------------------------------389 //--------------------------------------------------------------------------------------------------397 //--------------------------------------------------------------------------------------------------403 //--------------------------------------------------------------------------------------------------415 //--------------------------------------------------------------------------------------------------428 //--------------------------------------------------------------------------------------------------432 //--------------------------------------------------------------------------------------------------439 //--------------------------------------------------------------------------------------------------444 //--------------------------------------------------------------------------------------------------451 //--------------------------------------------------------------------------------------------------455 //--------------------------------------------------------------------------------------------------461 //--------------------------------------------------------------------------------------------------467 //--------------------------------------------------------------------------------------------------473 //--------------------------------------------------------------------------------------------------479 //--------------------------------------------------------------------------------------------------485 //--------------------------------------------------------------------------------------------------493 //--------------------------------------------------------------------------------------------------499 //--------------------------------------------------------------------------------------------------505 //--------------------------------------------------------------------------------------------------511 //--------------------------------------------------------------------------------------------------519 //--------------------------------------------------------------------------------------------------525 //--------------------------------------------------------------------------------------------------531 //--------------------------------------------------------------------------------------------------void(* le_gpio_DisconnectHandler_t)(void *)Definition: le_gpio_interface.h:160void le_gpio_DisconnectService(void)bool le_gpio_IsInput(void)void le_gpio_ConnectService(void)le_result_t le_gpio_EnablePullUp(void)bool le_gpio_IsActive(void)LE_FULL_API void le_gpio_SetServerDisconnectHandler(le_gpio_DisconnectHandler_t disconnectHandler, void *contextPtr)le_gpio_Polarity_t le_gpio_GetPolarity(void)le_result_t le_gpio_DisableEdgeSense(void)le_result_t le_gpio_SetTriStateOutput(le_gpio_Polarity_t polarity)le_gpio_Edge_t le_gpio_GetEdgeSense(void)le_result_t le_gpio_SetHighZ(void)bool le_gpio_Read(void)le_result_t le_gpio_EnablePullDown(void)bool le_gpio_IsOutput(void)le_gpio_ChangeEventHandlerRef_t le_gpio_AddChangeEventHandler(le_gpio_Edge_t trigger, le_gpio_ChangeCallbackFunc_t handlerPtr, void *contextPtr, int32_t sampleMs)le_result_t le_gpio_Deactivate(void)le_result_t le_gpio_SetEdgeSense(le_gpio_Edge_t trigger)le_result_t le_gpio_TryConnectService(void)void le_gpio_RemoveChangeEventHandler(le_gpio_ChangeEventHandlerRef_t handlerRef)le_result_t le_gpio_SetPushPullOutput(le_gpio_Polarity_t polarity, bool value)le_result_t le_gpio_DisableResistors(void)le_result_t le_gpio_Activate(void)le_result_t le_gpio_SetInput(le_gpio_Polarity_t polarity)le_gpio_PullUpDown_t le_gpio_GetPullUpDown(void)le_result_t le_gpio_SetOpenDrainOutput(le_gpio_Polarity_t polarity, bool value)