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 config159 //--------------------------------------------------------------------------------------------------163 //--------------------------------------------------------------------------------------------------166 //--------------------------------------------------------------------------------------------------169 * Connect the current client thread to the service providing this API. Block until the service is172 * For each thread that wants to use this API, either ConnectService or TryConnectService must be173 * called before any other functions in this API. Normally, ConnectService is automatically called178 //--------------------------------------------------------------------------------------------------184 //--------------------------------------------------------------------------------------------------187 * Try to connect the current client thread to the service providing this API. Return with an error190 * For each thread that wants to use this API, either ConnectService or TryConnectService must be191 * called before any other functions in this API. Normally, ConnectService is automatically called200 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).203 //--------------------------------------------------------------------------------------------------209 //--------------------------------------------------------------------------------------------------213 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants216 //--------------------------------------------------------------------------------------------------223 //--------------------------------------------------------------------------------------------------229 * longer a connection to the service, and the functions in this API can't be used. For details, see234 //--------------------------------------------------------------------------------------------------241 //--------------------------------------------------------------------------------------------------245 //--------------------------------------------------------------------------------------------------248 //--------------------------------------------------------------------------------------------------252 //--------------------------------------------------------------------------------------------------255 //--------------------------------------------------------------------------------------------------259 //--------------------------------------------------------------------------------------------------262 //--------------------------------------------------------------------------------------------------266 //--------------------------------------------------------------------------------------------------269 //--------------------------------------------------------------------------------------------------273 //--------------------------------------------------------------------------------------------------276 //--------------------------------------------------------------------------------------------------280 //--------------------------------------------------------------------------------------------------287 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------300 //--------------------------------------------------------------------------------------------------306 //--------------------------------------------------------------------------------------------------313 //--------------------------------------------------------------------------------------------------318 //--------------------------------------------------------------------------------------------------327 //--------------------------------------------------------------------------------------------------331 //--------------------------------------------------------------------------------------------------337 //--------------------------------------------------------------------------------------------------341 //--------------------------------------------------------------------------------------------------347 //--------------------------------------------------------------------------------------------------351 //--------------------------------------------------------------------------------------------------357 //--------------------------------------------------------------------------------------------------363 //--------------------------------------------------------------------------------------------------369 //--------------------------------------------------------------------------------------------------375 //--------------------------------------------------------------------------------------------------381 //--------------------------------------------------------------------------------------------------387 //--------------------------------------------------------------------------------------------------393 //--------------------------------------------------------------------------------------------------401 //--------------------------------------------------------------------------------------------------407 //--------------------------------------------------------------------------------------------------419 //--------------------------------------------------------------------------------------------------432 //--------------------------------------------------------------------------------------------------436 //--------------------------------------------------------------------------------------------------443 //--------------------------------------------------------------------------------------------------448 //--------------------------------------------------------------------------------------------------455 //--------------------------------------------------------------------------------------------------459 //--------------------------------------------------------------------------------------------------465 //--------------------------------------------------------------------------------------------------471 //--------------------------------------------------------------------------------------------------477 //--------------------------------------------------------------------------------------------------483 //--------------------------------------------------------------------------------------------------489 //--------------------------------------------------------------------------------------------------497 //--------------------------------------------------------------------------------------------------503 //--------------------------------------------------------------------------------------------------509 //--------------------------------------------------------------------------------------------------515 //--------------------------------------------------------------------------------------------------523 //--------------------------------------------------------------------------------------------------529 //--------------------------------------------------------------------------------------------------535 //--------------------------------------------------------------------------------------------------le_result_t le_gpio_SetTriStateOutput(le_gpio_Polarity_t polarity)bool le_gpio_IsActive(void)le_gpio_PullUpDown_t le_gpio_GetPullUpDown(void)void(* le_gpio_ChangeCallbackFunc_t)(bool state, void *contextPtr)Definition: le_gpio_common.h:93le_gpio_Polarity_t le_gpio_GetPolarity(void)le_gpio_Edge_t le_gpio_GetEdgeSense(void)void(* le_gpio_DisconnectHandler_t)(void *)Definition: le_gpio_interface.h:164le_result_t le_gpio_DisableEdgeSense(void)void le_gpio_RemoveChangeEventHandler(le_gpio_ChangeEventHandlerRef_t handlerRef)le_result_t le_gpio_DisableResistors(void)struct le_gpio_ChangeEventHandler * le_gpio_ChangeEventHandlerRef_tDefinition: le_gpio_common.h:67le_result_t le_gpio_SetEdgeSense(le_gpio_Edge_t trigger)bool le_gpio_IsInput(void)le_result_t le_gpio_SetHighZ(void)le_result_t le_gpio_EnablePullUp(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_SetOpenDrainOutput(le_gpio_Polarity_t polarity, bool value)void le_gpio_DisconnectService(void)le_result_t le_gpio_Deactivate(void)le_result_t le_gpio_TryConnectService(void)le_result_t le_gpio_EnablePullDown(void)le_result_t le_gpio_Activate(void)le_result_t le_gpio_SetInput(le_gpio_Polarity_t polarity)LE_FULL_API void le_gpio_SetServerDisconnectHandler(le_gpio_DisconnectHandler_t disconnectHandler, void *contextPtr)bool le_gpio_IsOutput(void)bool le_gpio_Read(void)void le_gpio_ConnectService(void)le_result_t le_gpio_SetPushPullOutput(le_gpio_Polarity_t polarity, bool value)