Spi_WriteSC16IS762 Function

Writes a data byte to SC16IS762

Syntax

ERRCODE Spi_WriteSC16IS762( UBYTE iface, UBYTE regByte, UBYTE dataByte)

Parameters

UBYTE interface (SPI_INTERFACE0,SPI_INTERFACE1, SPI_INTERFACE2)
UBYTE - SC16IS762 register & Channel	
UBYTE - data byte

Return Value

ERRCODE - SUCCESS if dataByte is written; otherwise INVALID_INTERFACE

Remarks

N/A

Requirements

sc16is762.h

Example

N/A