Spi_ReadSC16IS762 Function

Reads a data byte from SC16IS762

Syntax

ERRCODE Spi_ReadSC16IS762( UBYTE iface, UBYTE regByte, UBYTE* dataByte)

Parameters

UBYTE interface (SPI_INTERFACE0,SPI_INTERFACE1, SPI_INTERFACE2)
UBYTE - SC16IS762 register & Channel	
UBYTE* - where to put the data byte

Return Value

ERRCODE - SUCCESS if dataByte is read; otherwise INVALID_INTERFACE

Remarks

N/A

Requirements

sc16is762.h

Example

N/A