PSoC 4 Peripheral Driver Library - Alpha
SCB (Serial Communication Block)

General Description

The Serial Communications Block (SCB) supports three serial communication protocols: Serial Peripheral Interface (SPI), Universal Asynchronous Receiver Transmitter (UART), and Inter Integrated Circuit (I2C or IIC).

Only one of the protocols is supported by an SCB at any given time.

The functions and other declarations used in this driver are in cy_scb_spi.h, cy_scb_uart.h, cy_scb_ezi2c.h, cy_scb_i2c.h respectively. Include cy_pdl.h (ModusToolbox only) to get access to all functions and declarations in the PDL.

More Information

For more information on the SCB peripheral, refer to the technical reference manual (TRM).

MISRA-C Compliance

The SCB driver has the following specific deviations:

MISRA rule Rule Class (Required/Advisory) Rule Description Description of Deviation(s)
11.5 A A conversion should not be performed from pointer to void into pointer to object.
15.5 R A function should have a single point of exit at the end. The functions can return from several points. This is done to improve code clarity when returning error status code if input parameters validation fails.


VersionChangesReason for Change
1.0 Initial version.

API Reference

 Common API for the Serial Communication Block.
 Driver API for EZI2C Slave Peripheral.
 I2C (SCB)
 Driver API for I2C Bus Peripheral.
 Driver API for SPI Peripheral.
 Driver API for UART.