le_gpio_interface.h
Go to the documentation of this file.
47 * - SetEdgeSense() - Set the edge sensing on an input pin (only works if you have an EventHandler).64 * - IsActive() - Is an output pin currently being driven? (corresponds to the value file in sysfs)70 * to control which GPIO pins each app is allowed to access. It also simplifies the API by removing72 * client and the server, so the client can be more portable. Only one client can connect to each pin.107 * function that should not be available to apps, then it can be disabled by adding an entry to the112 * where n is the GPIO number. The value should be set to true to disable that service. If the value113 * is either false or absent then the service will run. Entries can be added using the config tool,115 * will disable the service for pin 13. Note that specifying the type as bool is vital as the config134 //--------------------------------------------------------------------------------------------------137 * Connect the current client thread to the service providing this API. Block until the service is140 * For each thread that wants to use this API, either ConnectService or TryConnectService must be141 * called before any other functions in this API. Normally, ConnectService is automatically called146 //--------------------------------------------------------------------------------------------------152 //--------------------------------------------------------------------------------------------------155 * Try to connect the current client thread to the service providing this API. Return with an error158 * For each thread that wants to use this API, either ConnectService or TryConnectService must be159 * called before any other functions in this API. Normally, ConnectService is automatically called166 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.167 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).170 //--------------------------------------------------------------------------------------------------176 //--------------------------------------------------------------------------------------------------182 * longer a connection to the service, and the functions in this API can't be used. For details, see187 //--------------------------------------------------------------------------------------------------194 //--------------------------------------------------------------------------------------------------198 //--------------------------------------------------------------------------------------------------210 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------232 //--------------------------------------------------------------------------------------------------236 //--------------------------------------------------------------------------------------------------240 //--------------------------------------------------------------------------------------------------244 //--------------------------------------------------------------------------------------------------259 //--------------------------------------------------------------------------------------------------267 //--------------------------------------------------------------------------------------------------269 (274 //--------------------------------------------------------------------------------------------------278 //--------------------------------------------------------------------------------------------------285 //--------------------------------------------------------------------------------------------------289 //--------------------------------------------------------------------------------------------------299 //--------------------------------------------------------------------------------------------------305 //--------------------------------------------------------------------------------------------------312 //--------------------------------------------------------------------------------------------------317 //--------------------------------------------------------------------------------------------------327 //--------------------------------------------------------------------------------------------------331 //--------------------------------------------------------------------------------------------------337 //--------------------------------------------------------------------------------------------------341 //--------------------------------------------------------------------------------------------------347 //--------------------------------------------------------------------------------------------------351 //--------------------------------------------------------------------------------------------------357 //--------------------------------------------------------------------------------------------------363 //--------------------------------------------------------------------------------------------------369 //--------------------------------------------------------------------------------------------------375 //--------------------------------------------------------------------------------------------------381 //--------------------------------------------------------------------------------------------------387 //--------------------------------------------------------------------------------------------------393 //--------------------------------------------------------------------------------------------------401 //--------------------------------------------------------------------------------------------------407 //--------------------------------------------------------------------------------------------------419 //--------------------------------------------------------------------------------------------------435 //--------------------------------------------------------------------------------------------------439 //--------------------------------------------------------------------------------------------------446 //--------------------------------------------------------------------------------------------------451 //--------------------------------------------------------------------------------------------------458 //--------------------------------------------------------------------------------------------------462 //--------------------------------------------------------------------------------------------------468 //--------------------------------------------------------------------------------------------------474 //--------------------------------------------------------------------------------------------------480 //--------------------------------------------------------------------------------------------------486 //--------------------------------------------------------------------------------------------------492 //--------------------------------------------------------------------------------------------------500 //--------------------------------------------------------------------------------------------------506 //--------------------------------------------------------------------------------------------------512 //--------------------------------------------------------------------------------------------------518 //--------------------------------------------------------------------------------------------------526 //--------------------------------------------------------------------------------------------------532 //--------------------------------------------------------------------------------------------------538 //--------------------------------------------------------------------------------------------------void le_gpio_DisconnectService(void)bool le_gpio_IsInput(void)Notify when pin voltage changes state in either direction.Definition: le_gpio_interface.h:226void 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 addHandlerRef)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:237le_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:269le_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)