serialspi_init Function

Initializes/checks parameters of SPI-UART port

Syntax

ERRCODE serialspi_init(UCB* ucb,SC16IS7XX_DRIVER_DATA* pData);

Parameters

UCB* - pointer to UART CONTROL BLOCK structure
SC16IS7XX_DRIVER_DATA* - pointer to a driver data block

Return Value

SERIALAPI_SUCCESS -  serial spi channel is initialized
SERIALAPI_XXXX_ERROR - otherwise

Remarks

N/A

Requirements

serialspi.h

Example

N/A