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 removing77 * client and the server, so the client can be more portable. Only one client can connect to each pin.112 * function that should not be available to apps, then it can be disabled by adding an entry to the117 * where n is the GPIO number. The value should be set to true to disable that service. If the value118 * is either false or absent then the service will run. Entries can be added using the config tool,120 * will disable the service for pin 13. Note that specifying the type as bool is vital as the config140 //--------------------------------------------------------------------------------------------------144 //--------------------------------------------------------------------------------------------------147 //--------------------------------------------------------------------------------------------------150 * Connect the current client thread to the service providing this API. Block until the service is153 * For each thread that wants to use this API, either ConnectService or TryConnectService must be154 * called before any other functions in this API. Normally, ConnectService is automatically called159 //--------------------------------------------------------------------------------------------------165 //--------------------------------------------------------------------------------------------------168 * Try to connect the current client thread to the service providing this API. Return with an error171 * For each thread that wants to use this API, either ConnectService or TryConnectService must be172 * called before any other functions in this API. Normally, ConnectService is automatically called181 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).184 //--------------------------------------------------------------------------------------------------190 //--------------------------------------------------------------------------------------------------194 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants197 //--------------------------------------------------------------------------------------------------204 //--------------------------------------------------------------------------------------------------210 * longer a connection to the service, and the functions in this API can't be used. For details, see215 //--------------------------------------------------------------------------------------------------222 //--------------------------------------------------------------------------------------------------226 //--------------------------------------------------------------------------------------------------237 //--------------------------------------------------------------------------------------------------241 //--------------------------------------------------------------------------------------------------256 //--------------------------------------------------------------------------------------------------260 //--------------------------------------------------------------------------------------------------264 //--------------------------------------------------------------------------------------------------268 //--------------------------------------------------------------------------------------------------281 //--------------------------------------------------------------------------------------------------285 //--------------------------------------------------------------------------------------------------287 (294 //--------------------------------------------------------------------------------------------------298 //--------------------------------------------------------------------------------------------------305 //--------------------------------------------------------------------------------------------------309 //--------------------------------------------------------------------------------------------------318 //--------------------------------------------------------------------------------------------------324 //--------------------------------------------------------------------------------------------------331 //--------------------------------------------------------------------------------------------------336 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------349 //--------------------------------------------------------------------------------------------------355 //--------------------------------------------------------------------------------------------------359 //--------------------------------------------------------------------------------------------------365 //--------------------------------------------------------------------------------------------------369 //--------------------------------------------------------------------------------------------------375 //--------------------------------------------------------------------------------------------------381 //--------------------------------------------------------------------------------------------------387 //--------------------------------------------------------------------------------------------------393 //--------------------------------------------------------------------------------------------------399 //--------------------------------------------------------------------------------------------------405 //--------------------------------------------------------------------------------------------------411 //--------------------------------------------------------------------------------------------------419 //--------------------------------------------------------------------------------------------------425 //--------------------------------------------------------------------------------------------------437 //--------------------------------------------------------------------------------------------------450 //--------------------------------------------------------------------------------------------------454 //--------------------------------------------------------------------------------------------------461 //--------------------------------------------------------------------------------------------------466 //--------------------------------------------------------------------------------------------------473 //--------------------------------------------------------------------------------------------------477 //--------------------------------------------------------------------------------------------------483 //--------------------------------------------------------------------------------------------------489 //--------------------------------------------------------------------------------------------------495 //--------------------------------------------------------------------------------------------------501 //--------------------------------------------------------------------------------------------------507 //--------------------------------------------------------------------------------------------------515 //--------------------------------------------------------------------------------------------------521 //--------------------------------------------------------------------------------------------------527 //--------------------------------------------------------------------------------------------------533 //--------------------------------------------------------------------------------------------------541 //--------------------------------------------------------------------------------------------------547 //--------------------------------------------------------------------------------------------------553 //--------------------------------------------------------------------------------------------------void(* le_gpio_DisconnectHandler_t)(void *)Definition: le_gpio_interface.h:145void le_gpio_DisconnectService(void)bool le_gpio_IsInput(void)Notify when pin voltage changes state in either direction.Definition: le_gpio_interface.h:250void 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:261void 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:287le_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)