Com Port Demo; Structure; Api - XMOS SliceKit GPIO Gpio Example Applications

Table of Contents

Advertisement

SliceKit GPIO Example Applications
};

3.2 COM Port Demo

3.2.1 Structure

All of the files required for operation are located in the app_slicekit_simple_demo/src directory.
The files that are need to be included for use of this component in an application are:
File
Description
Header file for API interfaces and Look up tables for thermistor. FIXME -
common.h
what about the uart
Main file which implements the demo functionality
main.xc

3.2.2 API

void app_manager(chanend c_uartTX,
Polling uart RX and push button switches and send received commands to pro-
cess_data thread.
This function has the following parameters:
c_uartTX
c_chanRX
c_process
c_end
void process_data(chanend c_process, chanend c_end)
process received data to see if received data is valid command or not Polling
switches to see for button press
This function has the following parameters:
c_process
c_end
void uart_tx_string(chanend c_uartTX, unsigned char message[100])
Transmits byte by byte to the UART TX thread for an input string.
This function has the following parameters:
REV A
chanend c_chanRX,
chanend c_process,
chanend c_end)
Channel to Uart TX Thread
Channel to Uart RX Thread
Channel to process data Thread
Channel to read data from process thread
Channel to receive data from app manager Thread
Channel to communicate to app manager thread
9/24

Advertisement

Table of Contents
loading

This manual is also suitable for:

Slicekit

Table of Contents