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 config154 //--------------------------------------------------------------------------------------------------158 //--------------------------------------------------------------------------------------------------161 //--------------------------------------------------------------------------------------------------164 * Connect the current client thread to the service providing this API. Block until the service is167 * For each thread that wants to use this API, either ConnectService or TryConnectService must be168 * called before any other functions in this API. Normally, ConnectService is automatically called173 //--------------------------------------------------------------------------------------------------179 //--------------------------------------------------------------------------------------------------182 * Try to connect the current client thread to the service providing this API. Return with an error185 * For each thread that wants to use this API, either ConnectService or TryConnectService must be186 * called before any other functions in this API. Normally, ConnectService is automatically called195 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).198 //--------------------------------------------------------------------------------------------------204 //--------------------------------------------------------------------------------------------------208 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants211 //--------------------------------------------------------------------------------------------------218 //--------------------------------------------------------------------------------------------------224 * longer a connection to the service, and the functions in this API can't be used. For details, see229 //--------------------------------------------------------------------------------------------------236 //--------------------------------------------------------------------------------------------------240 //--------------------------------------------------------------------------------------------------251 //--------------------------------------------------------------------------------------------------255 //--------------------------------------------------------------------------------------------------270 //--------------------------------------------------------------------------------------------------274 //--------------------------------------------------------------------------------------------------278 //--------------------------------------------------------------------------------------------------282 //--------------------------------------------------------------------------------------------------295 //--------------------------------------------------------------------------------------------------299 //--------------------------------------------------------------------------------------------------301 (308 //--------------------------------------------------------------------------------------------------312 //--------------------------------------------------------------------------------------------------319 //--------------------------------------------------------------------------------------------------323 //--------------------------------------------------------------------------------------------------332 //--------------------------------------------------------------------------------------------------338 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------350 //--------------------------------------------------------------------------------------------------359 //--------------------------------------------------------------------------------------------------363 //--------------------------------------------------------------------------------------------------369 //--------------------------------------------------------------------------------------------------373 //--------------------------------------------------------------------------------------------------379 //--------------------------------------------------------------------------------------------------383 //--------------------------------------------------------------------------------------------------389 //--------------------------------------------------------------------------------------------------395 //--------------------------------------------------------------------------------------------------401 //--------------------------------------------------------------------------------------------------407 //--------------------------------------------------------------------------------------------------413 //--------------------------------------------------------------------------------------------------419 //--------------------------------------------------------------------------------------------------425 //--------------------------------------------------------------------------------------------------433 //--------------------------------------------------------------------------------------------------439 //--------------------------------------------------------------------------------------------------451 //--------------------------------------------------------------------------------------------------464 //--------------------------------------------------------------------------------------------------468 //--------------------------------------------------------------------------------------------------475 //--------------------------------------------------------------------------------------------------480 //--------------------------------------------------------------------------------------------------487 //--------------------------------------------------------------------------------------------------491 //--------------------------------------------------------------------------------------------------497 //--------------------------------------------------------------------------------------------------503 //--------------------------------------------------------------------------------------------------509 //--------------------------------------------------------------------------------------------------515 //--------------------------------------------------------------------------------------------------521 //--------------------------------------------------------------------------------------------------529 //--------------------------------------------------------------------------------------------------535 //--------------------------------------------------------------------------------------------------541 //--------------------------------------------------------------------------------------------------547 //--------------------------------------------------------------------------------------------------555 //--------------------------------------------------------------------------------------------------561 //--------------------------------------------------------------------------------------------------567 //--------------------------------------------------------------------------------------------------void(* le_gpio_DisconnectHandler_t)(void *)Definition: le_gpio_interface.h:159void le_gpio_DisconnectService(void)bool le_gpio_IsInput(void)Notify when pin voltage changes state in either direction.Definition: le_gpio_interface.h:264void 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:275void 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:301le_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)