XDK API  3.6.0
Documentation
Macros | Functions | Variables
XdkExtensionPortGpio

This Module contains necessary implementation in order to enable user to develop his application using the Extension port GPIO interface. This module can be used a reference design for interfacing user device via GPIO of extension port. More...

+ Collaboration diagram for XdkExtensionPortGpio:

Macros

#define BCDS_MODULE_ID   XDK_APP_MODULE_ID_EXTENSION_PORT_GPIO
 

Functions

Retcode_T ExtensionGpioExample_DeleteGpio (BSP_ExtensionPort_PinId_T pinId)
 This API is used to de-initialize a particular GPIO pin and put it into default state. More...
 
Retcode_T ExtensionGpioExample_InitGpioIntBothEdge (BSP_ExtensionPort_PinId_T pinId)
 This API is used to configure GPIO as Input and capable of triggering interrupt for both Raising and Falling. After calling this API successfully the signal on the GPIO will trigger an Interrupt. More...
 
Retcode_T ExtensionGpioExample_InitGpioOutputMode (BSP_ExtensionPort_PinId_T pinId)
 This API is used to configure GPIO pin as output pin. More...
 
Retcode_T ExtensionGpioExample_Initialize (CmdProcessor_T *handle)
 This API is used to initialize the GPIO example resources. More...
 
static void GpioInterruptCallback (void)
 Callback function to be triggered upon interrupt in GPIO input pin BSP_ExtensionPort_ReadGpio() is used to read the pin value on interrupt. More...
 
static void GpioInterruptConsumer (void *param1, uint32_t pinValue)
 Deferred function called upon interrupt to process, this way of implementation can be used in case user want to execute long procedure upon this event on GPIO. More...
 

Variables

static CmdProcessor_TGpioCmdProcessHandle
 
static BSP_ExtensionPort_PinId_T GpioPinIdForEdgeInterrupt = BSP_EXTENSIONPORT_GPIO_MAX
 

Detailed Description

Macro Definition Documentation

#define BCDS_MODULE_ID   XDK_APP_MODULE_ID_EXTENSION_PORT_GPIO

Function Documentation

Retcode_T ExtensionGpioExample_DeleteGpio ( BSP_ExtensionPort_PinId_T  pinId)

Refer interface header for description

Retcode_T ExtensionGpioExample_InitGpioIntBothEdge ( BSP_ExtensionPort_PinId_T  pinId)

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Retcode_T ExtensionGpioExample_InitGpioOutputMode ( BSP_ExtensionPort_PinId_T  pinId)

Refer interface header for description

+ Here is the caller graph for this function:

Retcode_T ExtensionGpioExample_Initialize ( CmdProcessor_T handle)

Refer interface header for description

+ Here is the caller graph for this function:

static void GpioInterruptCallback ( void  )
static

Note: De-bouncing logic is not implemented here. The user shall implement his own in case if it is required for their use case.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void GpioInterruptConsumer ( void *  param1,
uint32_t  pinValue 
)
static
Parameters
[in]param1Unused
[in]pinValueValue on the GPIO pin

+ Here is the caller graph for this function:

Variable Documentation

CmdProcessor_T* GpioCmdProcessHandle
static
BSP_ExtensionPort_PinId_T GpioPinIdForEdgeInterrupt = BSP_EXTENSIONPORT_GPIO_MAX
static

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:55 by doxygen 1.8.8