XDK API  3.6.0
Documentation
Modules | Macros | Functions | Variables
XdkExtensionPort

Demo application for Explaining the usage of Extension Bus Supported peripherals like SPI , I2C , UART & GPIO. More...

+ Collaboration diagram for XdkExtensionPort:

Modules

 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.
 
 XdkExtensionPortI2c
 This Module contains necessary implementation in order to enable user to develop his application using the Extension port I2C communication interface. This module can be used a reference design for interfacing user device via I2C of extension port.
 
 XdkExtensionPortSpi
 This Module contains necessary implementation in order to enable user to develop his application using the Extension port SPI communication interface. This module can be used a reference design for interfacing user device via SPI of extension port.
 
 XdkExtensionPortUart
 This Module contains necessary implementation in order to enable user to develop his application using the Extension port UART communication interface. This module can be used a reference design for interfacing user device via UART of extension port.
 

Macros

#define BCDS_MODULE_ID   XDK_APP_MODULE_ID_APP_CONTROLLER
 

Functions

void AppController_Init (void *cmdProcessorHandle, uint32_t param2)
 Gives control to the Application controller. More...
 
static void AppControllerEnable (void *param1, uint32_t param2)
 To enable the necessary modules for the application. More...
 
static void AppControllerFire (void *pvParameters)
 Responsible for controlling the XDK Extension Port application control flow. More...
 
static void AppControllerSetup (void *param1, uint32_t param2)
 To setup the necessary modules for the application. More...
 

Variables

static CmdProcessor_TAppCmdProcessor
 
static xTaskHandle AppControllerHandle = NULL
 

Detailed Description

This module contains example application for the Interfaces like SPI, I2C, UART & GPIO. The user has a flexibility to remove the certain peripheral application code like I2C, SPI, etc. before compilation using the feature macros provided in AppController.h header file

UART Demo application description In this demo application, whatever data received in RX of UART is echoed (transmitted) back to the TX of UART

I2C Demo application description In this demo application, our device is interfaced to extension port I2C pins and basic read and write to the device registers is performed. The user is requested to use this application for reference purpose only and can modify based on their needs.

SPI Demo application description In this demo application, our device is interfaced to extension port SPI pins and basic read and write to the device registers is performed. The user is requested to use this application for reference purpose only and can modify based on their needs.

GPIO Demo application description In this application both Input and Output GPIO operations are demonstrated. In this example, initially PA0 GPIO pin is programmed for generating interrupt on both raising edge and falling edge. PA1 GPIO Pin is configured as output and toggled the of the pin for a couple of times The user is requested to use this application for reference purpose only and can modify based on their needs.

Macro Definition Documentation

#define BCDS_MODULE_ID   XDK_APP_MODULE_ID_APP_CONTROLLER

Function Documentation

void AppController_Init ( void *  cmdProcessorHandle,
uint32_t  param2 
)

This is a template function where the user can write his custom application.

Refer interface header for description

+ Here is the call graph for this function:

static void AppControllerEnable ( void *  param1,
uint32_t  param2 
)
static
  • GPIO pin PA0 as both edge triggered if EXTENSION_PORT_GPIO_FEATURE is enabled
Parameters
[in]param1Unused
[in]param2Unused

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void AppControllerFire ( void *  pvParameters)
static
  • Validate the I2C communication if EXTENSION_PORT_I2C_FEATURE is enabled
  • Validate the SPI communication if EXTENSION_PORT_SPI_FEATURE is enabled
  • Validate the GPIO feature by configuring pin PA1 as output and toggling it twice if EXTENSION_PORT_GPIO_FEATURE is enabled
Parameters
[in]pvParametersUnused

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void AppControllerSetup ( void *  param1,
uint32_t  param2 
)
static
  • BSP for Extension Port
  • Extension Port UART if EXTENSION_PORT_UART_FEATURE
  • Extension Port I2C if EXTENSION_PORT_I2C_FEATURE
  • Extension Port SPI if EXTENSION_PORT_SPI_FEATURE
  • Extension Port GPIO if EXTENSION_PORT_GPIO_FEATURE
Parameters
[in]param1Unused
[in]param2Unused

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

CmdProcessor_T* AppCmdProcessor
static

Handle to store the main Command processor handle to be reused by ServalPAL thread

xTaskHandle AppControllerHandle = NULL
static

OS thread handle for Application controller


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