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).66 * - IsActive() - Is an output pin currently being driven? (corresponds to the value file in sysfs)72 * to control which GPIO pins each app is allowed to access. It also simplifies the API by removing74 * client and the server, so the client can be more portable. Only one client can connect to each pin.109 * function that should not be available to apps, then it can be disabled by adding an entry to the114 * where n is the GPIO number. The value should be set to true to disable that service. If the value115 * is either false or absent then the service will run. Entries can be added using the config tool,117 * will disable the service for pin 13. Note that specifying the type as bool is vital as the config137 //--------------------------------------------------------------------------------------------------141 //--------------------------------------------------------------------------------------------------144 //--------------------------------------------------------------------------------------------------147 * Connect the current client thread to the service providing this API. Block until the service is150 * For each thread that wants to use this API, either ConnectService or TryConnectService must be151 * called before any other functions in this API. Normally, ConnectService is automatically called156 //--------------------------------------------------------------------------------------------------162 //--------------------------------------------------------------------------------------------------165 * Try to connect the current client thread to the service providing this API. Return with an error168 * 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 called178 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).181 //--------------------------------------------------------------------------------------------------187 //--------------------------------------------------------------------------------------------------191 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants194 //--------------------------------------------------------------------------------------------------201 //--------------------------------------------------------------------------------------------------207 * longer a connection to the service, and the functions in this API can't be used. For details, see212 //--------------------------------------------------------------------------------------------------219 //--------------------------------------------------------------------------------------------------223 //--------------------------------------------------------------------------------------------------234 //--------------------------------------------------------------------------------------------------238 //--------------------------------------------------------------------------------------------------253 //--------------------------------------------------------------------------------------------------257 //--------------------------------------------------------------------------------------------------261 //--------------------------------------------------------------------------------------------------265 //--------------------------------------------------------------------------------------------------278 //--------------------------------------------------------------------------------------------------282 //--------------------------------------------------------------------------------------------------284 (291 //--------------------------------------------------------------------------------------------------295 //--------------------------------------------------------------------------------------------------302 //--------------------------------------------------------------------------------------------------306 //--------------------------------------------------------------------------------------------------315 //--------------------------------------------------------------------------------------------------321 //--------------------------------------------------------------------------------------------------328 //--------------------------------------------------------------------------------------------------333 //--------------------------------------------------------------------------------------------------342 //--------------------------------------------------------------------------------------------------346 //--------------------------------------------------------------------------------------------------352 //--------------------------------------------------------------------------------------------------356 //--------------------------------------------------------------------------------------------------362 //--------------------------------------------------------------------------------------------------366 //--------------------------------------------------------------------------------------------------372 //--------------------------------------------------------------------------------------------------378 //--------------------------------------------------------------------------------------------------384 //--------------------------------------------------------------------------------------------------390 //--------------------------------------------------------------------------------------------------396 //--------------------------------------------------------------------------------------------------402 //--------------------------------------------------------------------------------------------------408 //--------------------------------------------------------------------------------------------------416 //--------------------------------------------------------------------------------------------------422 //--------------------------------------------------------------------------------------------------434 //--------------------------------------------------------------------------------------------------447 //--------------------------------------------------------------------------------------------------451 //--------------------------------------------------------------------------------------------------458 //--------------------------------------------------------------------------------------------------463 //--------------------------------------------------------------------------------------------------470 //--------------------------------------------------------------------------------------------------474 //--------------------------------------------------------------------------------------------------480 //--------------------------------------------------------------------------------------------------486 //--------------------------------------------------------------------------------------------------492 //--------------------------------------------------------------------------------------------------498 //--------------------------------------------------------------------------------------------------504 //--------------------------------------------------------------------------------------------------512 //--------------------------------------------------------------------------------------------------518 //--------------------------------------------------------------------------------------------------524 //--------------------------------------------------------------------------------------------------530 //--------------------------------------------------------------------------------------------------538 //--------------------------------------------------------------------------------------------------544 //--------------------------------------------------------------------------------------------------550 //--------------------------------------------------------------------------------------------------void(* le_gpio_DisconnectHandler_t)(void *)Definition: le_gpio_interface.h:142void le_gpio_DisconnectService(void)bool le_gpio_IsInput(void)Notify when pin voltage changes state in either direction.Definition: le_gpio_interface.h:247void le_gpio_ConnectService(void)le_result_t le_gpio_EnablePullUp(void)bool le_gpio_IsActive(void)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)struct le_gpio_ChangeEventHandler * le_gpio_ChangeEventHandlerRef_tDefinition: le_gpio_interface.h:258void le_gpio_SetServerDisconnectHandler(le_gpio_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_gpio_DisableResistors(void)le_result_t le_gpio_Activate(void)void(* le_gpio_ChangeCallbackFunc_t)(bool state, void *contextPtr)Definition: le_gpio_interface.h:284le_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)