Bosch XDK110 Getting Started page 16

Cross-domain development kit
Hide thumbs Also See for XDK110:
Table of Contents

Advertisement

Extension Bus Advanced Guide | XDK110
The following Table shows an excerpt of the functions used to implement a working SPI connection.
Table 4. Function overview
FUNCTION
BSP_ExtensionPort_Connect()
BSP_ExtensionPort_ConnectSpi()
BSP_ExtensionPort_SetSpiConfig()
BSP_ExtensionPort_GetSpiHandle()
BSP_ExtensionPort_EnableSpi()
BSP_ExtensionPort_ConnectGpio()
BSP_ExtensionPort_SetGpioConfig()
BSP_ExtensionPort_EnableGpio()
BSP_ExtensionPort_ClearGpio()
BSP_ExtensionPort_SetGpio()
BCDS_MCU_SPI.h
The interface
An excerpt of the functions used is shown in the following table,
Table 5 Function overview
FUNCTION
MCU_SPI_Initialize()
MCU_SPI_Send()
MCU_SPI_Receive()
Furthermore, the interface
chapter ,via the functions
BSP_ExtensionPort.h
This function is called to enable the power control for the
extension bus and disables all GPIO pins to preserve power
This function is called to configure the corresponding SPI MOSI,
MISO and Clock pins on the extension bus
This function is called to configure SPI settings, such as Baud
rate, SPI mode and SPI bit order
This function returns the handle for the SPI communication
holding all relevant configuration data
This function is called to enable the SPI module for transmitting
and reading data
This function is called to connect to a certain GPIO pin on the
extension bus
This function is called to set configuration for a specific GPIO
pin on the extension bus
This function is called to enable a specific GPIO pin on the
extension bus
This function is called to clear a state on a certain GPIO pin
This function is called to set a state on a certain GPIO pin
will be used to initialize SPI on driver level and to transmit and to receive data.
BSP_MCU_SPI.h
This function is used to initialize the SPI interface on driver level
This function is used to transmit data over the SPI interface
This function is used to receive data from the SPI interface
semphr.h
is used to add control logic to the implementation of SPI, shown in the next
xSemaphoreTake()
xSemaphoreGiveFromISR()
,
DESCRIPTION
DESCRIPTION
and
xSemaphoreCreateBinary()
16 24
|
.


Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents