Data Structures | |
struct | XMC_USIC_CH_t |
Macros | |
#define | USIC_CH_DXCR_CM_Msk USIC_CH_DX0CR_CM_Msk |
#define | USIC_CH_DXCR_CM_Pos USIC_CH_DX0CR_CM_Pos |
#define | USIC_CH_DXCR_DFEN_Msk USIC_CH_DX0CR_DFEN_Msk |
#define | USIC_CH_DXCR_DPOL_Msk USIC_CH_DX0CR_DPOL_Msk |
#define | USIC_CH_DXCR_DSEL_Msk USIC_CH_DX0CR_DSEL_Msk |
#define | USIC_CH_DXCR_DSEL_Pos USIC_CH_DX0CR_DSEL_Pos |
#define | USIC_CH_DXCR_DSEN_Msk USIC_CH_DX0CR_DSEN_Msk |
#define | USIC_CH_DXCR_INSW_Msk USIC_CH_DX0CR_INSW_Msk |
#define | USIC_CH_DXCR_INSW_pos USIC_CH_DX0CR_INSW_Pos |
#define | USIC_CH_DXCR_SFSEL_Msk USIC_CH_DX0CR_SFSEL_Msk |
#define | USIC_CH_DXCR_SFSEL_Pos USIC_CH_DX0CR_SFSEL_Pos |
#define | XMC_USIC0 ((XMC_USIC_t *)USIC0_BASE) |
#define | XMC_USIC0_CH0 ((XMC_USIC_CH_t *)USIC0_CH0_BASE) |
#define | XMC_USIC0_CH1 ((XMC_USIC_CH_t *)USIC0_CH1_BASE) |
#define | XMC_USIC1 ((XMC_USIC_t *)USIC1_BASE) |
#define | XMC_USIC1_CH0 ((XMC_USIC_CH_t *)USIC1_CH0_BASE) |
#define | XMC_USIC1_CH1 ((XMC_USIC_CH_t *)USIC1_CH1_BASE) |
#define | XMC_USIC2 ((XMC_USIC_t *)USIC2_BASE) |
#define | XMC_USIC2_CH0 ((XMC_USIC_CH_t *)USIC2_CH0_BASE) |
#define | XMC_USIC2_CH1 ((XMC_USIC_CH_t *)USIC2_CH1_BASE) |
Typedefs | |
typedef USIC_GLOBAL_TypeDef | XMC_USIC_t |
The Universal Serial Interface Channel(USIC) module is a flexible interface module covering several serial communication protocols. A USIC module contains two independent communication channels named USICx_CH0 and USICx_CH1, with x being the number of the USIC module. The user can program, during run-time, which protocol will be handled by each communication channel and which pins are used. The driver provides APIs, configuration structures and enumerations to configure common features of multiple serial communication protocols.
USIC driver features:
#define USIC_CH_DXCR_CM_Msk USIC_CH_DX0CR_CM_Msk |
Common mask for CM bitfield mask in DXnCR register
#define USIC_CH_DXCR_CM_Pos USIC_CH_DX0CR_CM_Pos |
Common mask for CM bitfield position in DXnCR register
#define USIC_CH_DXCR_DFEN_Msk USIC_CH_DX0CR_DFEN_Msk |
Common mask for DFEN bitfield mask in DXnCR register
#define USIC_CH_DXCR_DPOL_Msk USIC_CH_DX0CR_DPOL_Msk |
Common mask for DPOL bitfield mask in DXnCR register
#define USIC_CH_DXCR_DSEL_Msk USIC_CH_DX0CR_DSEL_Msk |
Common mask for DSEL bitfield mask in DXnCR register
#define USIC_CH_DXCR_DSEL_Pos USIC_CH_DX0CR_DSEL_Pos |
Common mask for DSEL bitfield position in DXnCR register
#define USIC_CH_DXCR_DSEN_Msk USIC_CH_DX0CR_DSEN_Msk |
Common mask for DSEN bitfield mask in DXnCR register
#define USIC_CH_DXCR_INSW_Msk USIC_CH_DX0CR_INSW_Msk |
Common mask for INSW bitfield mask in DXnCR register
#define USIC_CH_DXCR_INSW_pos USIC_CH_DX0CR_INSW_Pos |
Common mask for INSW bitfield position in DXnCR register
#define USIC_CH_DXCR_SFSEL_Msk USIC_CH_DX0CR_SFSEL_Msk |
Common mask for SFSEL bitfield mask in DXnCR register
#define USIC_CH_DXCR_SFSEL_Pos USIC_CH_DX0CR_SFSEL_Pos |
Common mask for SFSEL bitfield position in DXnCR register
#define XMC_USIC0 ((XMC_USIC_t *)USIC0_BASE) |
USIC0 module base address
#define XMC_USIC0_CH0 ((XMC_USIC_CH_t *)USIC0_CH0_BASE) |
USIC0 channel 0 base address
#define XMC_USIC0_CH1 ((XMC_USIC_CH_t *)USIC0_CH1_BASE) |
USIC0 channel 1 base address
#define XMC_USIC1 ((XMC_USIC_t *)USIC1_BASE) |
USIC1 module base address
#define XMC_USIC1_CH0 ((XMC_USIC_CH_t *)USIC1_CH0_BASE) |
USIC1 channel 0 base address
#define XMC_USIC1_CH1 ((XMC_USIC_CH_t *)USIC1_CH1_BASE) |
USIC1 channel 1 base address
#define XMC_USIC2 ((XMC_USIC_t *)USIC2_BASE) |
USIC2 module base address
#define XMC_USIC2_CH0 ((XMC_USIC_CH_t *)USIC2_CH0_BASE) |
USIC2 channel 0 base address
#define XMC_USIC2_CH1 ((XMC_USIC_CH_t *)USIC2_CH1_BASE) |
USIC2 channel 1 base address
typedef USIC_GLOBAL_TypeDef XMC_USIC_t |
USIC module structure
USIC channel baudrate generator divider mode
USIC channel baudrate generator clock source
USIC channel baudrate generator master clock passive level
USIC channel baudrate generator shift clock passive level
enum XMC_USIC_CH_EVENT_t |
USIC channel events
USIC channel receive FIFO size
USIC channel input combination mode
USIC channel input source sampling frequency
enum XMC_USIC_CH_INPUT_t |
USIC channel interrupt node pointers
USIC channel kernel mode
USIC channel shift direction. Defines the shift direction of the data words for transmission and reception
USIC channel data transmission start modes. Data shifted out of the transmit pin depends on the value configured for the TDEN bitfield of the TCSR register. Following enum values are used for configuring the TCSR->TDEN bitfield.
enum XMC_USIC_CH_STATUS_t |
void XMC_USIC_CH_ConfigExternalInputSignalToBRG | ( | XMC_USIC_CH_t *const | channel, |
const uint16_t | pdiv, | ||
const uint32_t | oversampling, | ||
const XMC_USIC_CH_INPUT_COMBINATION_MODE_t | combination_mode | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
pdiv | Desired divider for the external frequency input. Range: minimum value = 1, maximum value = 1024 |
oversampling | Required oversampling. The value indicates the number of time quanta for one symbol of data. This can be related to the number of samples for each logic state of the data signal. Range: 1 to 32. Value should be chosen based on the protocol used. |
combination_mode | Selects which edge of the synchronized(and optionally filtered) signal DXnS actives the trigger output DXnT of the input stage. |
void XMC_USIC_CH_ConfigureShiftClockOutput | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_t | passive_level, | ||
const XMC_USIC_CH_BRG_SHIFT_CLOCK_OUTPUT_t | clock_output | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
passive_level | Passive level for the clock output. Range: XMC_USIC_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_0_DELAY_DISABLED, XMC_USIC_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_0_DELAY_ENABLED, XMC_USIC_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_1_DELAY_DISABLED, XMC_USIC_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_1_DELAY_ENABLED, |
clock_output | Shift clock source selection. Range: Use XMC_USIC_CH_BRG_SHIFT_CLOCK_OUTPUT_SCLK, XMC_USIC_CH_BRG_SHIFT_CLOCK_OUTPUT_DX1 |
void XMC_USIC_CH_ConnectInputDataShiftToDataInput | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_INPUT_t | input | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
< Common mask for INSW bitfield mask in DXnCR register
void XMC_USIC_CH_ConnectInputDataShiftToPPP | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_INPUT_t | input | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
< Common mask for INSW bitfield mask in DXnCR register
void XMC_USIC_CH_Disable | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_DisableDelayCompensation | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_DisableEvent | ( | XMC_USIC_CH_t *const | channel, |
const uint32_t | event | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
event | Bit mask of the channel events to be disabled. Use XMC_USIC_CH_EVENT_t for the bit masks. Range: XMC_USIC_CH_EVENT_RECEIVE_START, XMC_USIC_CH_EVENT_DATA_LOST etc. Multiple events can be combined using OR operation. |
void XMC_USIC_CH_DisableFrameLengthControl | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_DisableInputDigitalFilter | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_INPUT_t | input | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
< Common mask for DFEN bitfield mask in DXnCR register
void XMC_USIC_CH_DisableInputInversion | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_INPUT_t | input | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
< Common mask for DPOL bitfield mask in DXnCR register
void XMC_USIC_CH_DisableInputSync | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_INPUT_t | input | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
< Common mask for DSEN bitfield mask in DXnCR register
void XMC_USIC_CH_DisableTBUFDataValidTrigger | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_DisableTimeMeasurement | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_DisableWordLengthControl | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_Enable | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_EnableDelayCompensation | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_EnableEvent | ( | XMC_USIC_CH_t *const | channel, |
const uint32_t | event | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
event | Bit mask of the channel events to be enabled. Use XMC_USIC_CH_EVENT_t for the bit masks. Range: XMC_USIC_CH_EVENT_RECEIVE_START, XMC_USIC_CH_EVENT_DATA_LOST etc. Multiple events can be combined using OR operation. |
void XMC_USIC_CH_EnableFrameLengthControl | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_EnableInputDigitalFilter | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_INPUT_t | input | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
< Common mask for DFEN bitfield mask in DXnCR register
void XMC_USIC_CH_EnableInputInversion | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_INPUT_t | input | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
< Common mask for DPOL bitfield mask in DXnCR register
void XMC_USIC_CH_EnableInputSync | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_INPUT_t | input | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
< Common mask for DSEN bitfield mask in DXnCR register
void XMC_USIC_CH_EnableTBUFDataValidTrigger | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_EnableTimeMeasurement | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_EnableWordLengthControl | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
uint32_t XMC_USIC_CH_GetBaudrate | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
uint32_t XMC_USIC_CH_GetCaptureTimerValue | ( | const XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
uint32_t XMC_USIC_CH_GetMCLKFrequency | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
uint32_t XMC_USIC_CH_GetReceiveBufferStatus | ( | XMC_USIC_CH_t *const | channel | ) |
API to get receive buffer status.
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
uint32_t XMC_USIC_CH_GetSCLKFrequency | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
XMC_USIC_CH_TBUF_STATUS_t XMC_USIC_CH_GetTransmitBufferStatus | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_InvalidateReadData | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_RXFIFO_ClearEvent | ( | XMC_USIC_CH_t *const | channel, |
const uint32_t | event | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
event | Receive FIFO events to be cleared. Range: XMC_USIC_CH_RXFIFO_EVENT_STANDARD, XMC_USIC_CH_RXFIFO_EVENT_ERROR, XMC_USIC_CH_RXFIFO_EVENT_ALTERNATE. |
void XMC_USIC_CH_RXFIFO_Configure | ( | XMC_USIC_CH_t *const | channel, |
const uint32_t | data_pointer, | ||
const XMC_USIC_CH_FIFO_SIZE_t | size, | ||
const uint32_t | limit | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
data_pointer | Start position inside the FIFO buffer. Range: 0 to 63. |
size | Required size of the receive FIFO. Range: XMC_USIC_CH_FIFO_DISABLED, XMC_USIC_CH_FIFO_SIZE_2WORDS.. XMC_USIC_CH_FIFO_SIZE_64WORDS |
limit | Threshold of receive FIFO filling level to be considered for generating events. Range: 0 to size -1. |
void XMC_USIC_CH_RXFIFO_DisableEvent | ( | XMC_USIC_CH_t *const | channel, |
const uint32_t | event | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
event | Events to be disabled. Range: XMC_USIC_CH_RXFIFO_EVENT_CONF_STANDARD, XMC_USIC_CH_RXFIFO_EVENT_CONF_ERROR, XMC_USIC_CH_RXFIFO_EVENT_CONF_ALTERNATE. |
void XMC_USIC_CH_RXFIFO_EnableEvent | ( | XMC_USIC_CH_t *const | channel, |
const uint32_t | event | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
event | Events to be enabled. Multiple events can be bitwise OR combined. XMC_USIC_CH_RXFIFO_EVENT_CONF_t |
Note: API only enables the events. For interrupt generation, interrupt node must be configured and NVIC node must be enabled.
void XMC_USIC_CH_RXFIFO_Flush | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
uint16_t XMC_USIC_CH_RXFIFO_GetData | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
uint32_t XMC_USIC_CH_RXFIFO_GetEvent | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Note: Event status flags should be cleared by the user explicitly.
uint32_t XMC_USIC_CH_RXFIFO_GetLevel | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
bool XMC_USIC_CH_RXFIFO_IsEmpty | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
bool XMC_USIC_CH_RXFIFO_IsFull | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_RXFIFO_SetInterruptNodePointer | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_RXFIFO_INTERRUPT_NODE_POINTER_t | interrupt_node, | ||
const uint32_t | service_request | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
interrupt_node | Node pointer representing the receive FIFO events. Range: XMC_USIC_CH_RXFIFO_INTERRUPT_NODE_POINTER_STANDARD, XMC_USIC_CH_RXFIFO_INTERRUPT_NODE_POINTER_ALTERNATE |
service_request | The service request to be used for interrupt generation. Range: 0 to 5. |
Note: NVIC node should be explicitly enabled for the interrupt generation.
void XMC_USIC_CH_RXFIFO_SetSizeTriggerLimit | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_FIFO_SIZE_t | size, | ||
const uint32_t | limit | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
size | Required size of the receive FIFO. Range: XMC_USIC_CH_FIFO_DISABLED, XMC_USIC_CH_FIFO_SIZE_2WORDS.. XMC_USIC_CH_FIFO_SIZE_64WORDS |
limit | Threshold for receive FIFO filling level to be considered for generating events. Range: 0 to size -1. |
void XMC_USIC_CH_RXFIFO_SetTriggerLimit | ( | XMC_USIC_CH_t *const | channel, |
const uint32_t | limit | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
limit | Threshold for transmit FIFO filling level to be considered for generating events. Range: 0 to fifo size -1. |
XMC_USIC_CH_STATUS_t XMC_USIC_CH_SetBaudrate | ( | XMC_USIC_CH_t *const | channel, |
uint32_t | rate, | ||
uint32_t | oversampling | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
rate | Desired baudrate. Range: minimum value = 100, maximum value depends on the peripheral clock frequency and oversampling. Maximum baudrate can be derived using the formula: (fperiph * 1023)/(1024 * oversampling) |
oversampling | Required oversampling. The value indicates the number of time quanta for one symbol of data. This can be related to the number of samples for each logic state of the data signal. Range: 1 to 32. Value should be chosen based on the protocol used. |
void XMC_USIC_CH_SetBaudrateDivider | ( | XMC_USIC_CH_t *const | channel, |
XMC_USIC_CH_BRG_CLOCK_SOURCE_t | clksel, | ||
bool | pppen, | ||
uint32_t | pdiv, | ||
XMC_USIC_CH_BRG_CTQSEL_t | ctqsel, | ||
uint32_t | pctq, | ||
uint32_t | dctq | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
clksel | Baudrate generator clock source. |
pppen | Enable 2:1 Divider for fPPP. |
pdiv | Divider Factor to generate fPDIV = fPPP / (pDIV + 1) |
ctqsel | Input selection for CTQ. |
pctq | Pre-Divider for Time Quanta Counter. fCTQIN / (PCQT + 1) |
dctq | Denominator for Time Quanta Counter. fTQ / (DCTQ + 1) |
XMC_USIC_CH_STATUS_t XMC_USIC_CH_SetBaudrateEx | ( | XMC_USIC_CH_t *const | channel, |
int32_t | rate, | ||
int32_t | oversampling | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
rate | Desired baudrate. Only integer dividers of peripheral clock are achievable |
oversampling | Required oversampling. The value indicates the number of time quanta for one symbol of data. This can be related to the number of samples for each logic state of the data signal. Range: 1 to 32. Value should be chosen based on the protocol used. |
void XMC_USIC_CH_SetBRGInputClockSource | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_BRG_CLOCK_SOURCE_t | clock_source | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
clock_source | clock source for the BRG. |
void XMC_USIC_CH_SetDataOutputMode | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_DATA_OUTPUT_MODE_t | data_output_mode | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
data_output_mode | Data output mode. Range: XMC_USIC_CH_DATA_OUTPUT_MODE_NORMAL, XMC_USIC_CH_DATA_OUTPUT_MODE_INVERTED |
void XMC_USIC_CH_SetFractionalDivider | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_BRG_CLOCK_DIVIDER_MODE_t | mode, | ||
const uint16_t | step | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
mode | divider mode XMC_USIC_CH_BRG_CLOCK_DIVIDER_MODE_t |
step | divider XMC_USIC_CH_BRG_CLOCK_DIVIDER_MODE_NORMAL resulting divider = 1023 - step XMC_USIC_CH_BRG_CLOCK_DIVIDER_MODE_FRACTIONAL resulting divider = 1023 / step |
void XMC_USIC_CH_SetFrameLength | ( | XMC_USIC_CH_t *const | channel, |
const uint8_t | frame_length | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
frame_length | Number of bits in a frame. Range: minimum= 1, maximum= 0x3f. The maximum value for fixed frame size is 0x3f. e.g: For a frame length of 16, frame_length should be provided as 16. |
void XMC_USIC_CH_SetInputSamplingFreq | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_INPUT_t | input, | ||
const XMC_USIC_CH_INPUT_SAMPLING_FREQ_t | sampling_freq | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support.. |
input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
sampling_freq | Sampling frequency value of type XMC_USIC_CH_INPUT_SAMPLING_FREQ_t. |
< Common mask for SFSEL bitfield mask in DXnCR register
void XMC_USIC_CH_SetInputSource | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_INPUT_t | input, | ||
const uint8_t | source | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. | ||||||||||||||||
input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 | ||||||||||||||||
source | Input source select for the input stage. The table below maps the enum value with the input channel.
|
< Common mask for DSEL bitfield mask in DXnCR register
< Common mask for DSEL bitfield position in DXnCR register
void XMC_USIC_CH_SetInputTriggerCombinationMode | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_INPUT_t | input, | ||
const XMC_USIC_CH_INPUT_COMBINATION_MODE_t | combination_mode | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support.. |
input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
combination_mode | Combination mode value of type XMC_USIC_CH_INPUT_COMBINATION_MODE_t. |
< Common mask for CM bitfield mask in DXnCR register
< Common mask for CM bitfield position in DXnCR register
void XMC_USIC_CH_SetInterruptNodePointer | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_INTERRUPT_NODE_POINTER_t | interrupt_node, | ||
const uint32_t | service_request | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
interrupt_node | Interrupt node pointer to be configured. Range: XMC_USIC_CH_INTERRUPT_NODE_POINTER_TRANSMIT_SHIFT, XMC_USIC_CH_INTERRUPT_NODE_POINTER_TRANSMIT_BUFFER etc. |
service_request | Service request number. Range: 0 to 5. |
void XMC_USIC_CH_SetMclkOutputPassiveLevel | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_BRG_MASTER_CLOCK_PASSIVE_LEVEL_t | passive_level | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
passive_level | Passive level for the master clock output. Range: XMC_USIC_CH_BRG_MASTER_CLOCK_PASSIVE_LEVEL_0, XMC_USIC_CH_BRG_MASTER_CLOCK_PASSIVE_LEVEL_1. |
void XMC_USIC_CH_SetMode | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_OPERATING_MODE_t | mode | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
mode | USIC channel operation mode. Range: XMC_USIC_CH_OPERATING_MODE_IDLE, XMC_USIC_CH_OPERATING_MODE_SPI, XMC_USIC_CH_OPERATING_MODE_UART, XMC_USIC_CH_OPERATING_MODE_I2S, XMC_USIC_CH_OPERATING_MODE_I2C. |
void XMC_USIC_CH_SetPassiveDataLevel | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_PASSIVE_DATA_LEVEL_t | passive_level | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
passive_level | Value of passive level for the channel. Range: XMC_USIC_CH_PASSIVE_DATA_LEVEL0, XMC_USIC_CH_PASSIVE_DATA_LEVEL1 |
void XMC_USIC_CH_SetShiftDirection | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_SHIFT_DIRECTION_t | shift_direction | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
word_length | Number of bits to be configured for a data word. Range: minimum= 1, maximum= 16. e.g: For word length of 8, word_length should be provided as 8. |
void XMC_USIC_CH_SetStartTransmisionMode | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_START_TRANSMISION_MODE_t | start_transmision_mode | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
start_transmision_mode | Transmission mode to be enabled. Range: XMC_USIC_CH_START_TRANSMISION_DISABLED, XMC_USIC_CH_START_TRANSMISION_ON_TDV, XMC_USIC_CH_START_TRANSMISION_ON_TDV_DX2S_0, XMC_USIC_CH_START_TRANSMISION_ON_TDV_DX2S_1 |
void XMC_USIC_CH_SetTransmitBufferStatus | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_TBUF_STATUS_SET_t | transmit_buffer_status | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
transmit_buffer_status | clearing or setting the TDV flag. |
void XMC_USIC_CH_SetWordLength | ( | XMC_USIC_CH_t *const | channel, |
const uint8_t | word_length | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
word_length | Number of bits to be configured for a data word. Range: minimum= 1, maximum= 16. e.g: For word length of 8, word_length should be provided as 8. |
void XMC_USIC_CH_TriggerServiceRequest | ( | XMC_USIC_CH_t *const | channel, |
const uint32_t | service_request_line | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
service_request_line | service request number of the event to be triggered. Range: 0 to 5. |
void XMC_USIC_CH_TXFIFO_ClearEvent | ( | XMC_USIC_CH_t *const | channel, |
const uint32_t | event | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
event | Transmit FIFO events to be cleared. Range: XMC_USIC_CH_TXFIFO_EVENT_STANDARD, XMC_USIC_CH_TXFIFO_EVENT_ERROR. |
void XMC_USIC_CH_TXFIFO_Configure | ( | XMC_USIC_CH_t *const | channel, |
const uint32_t | data_pointer, | ||
const XMC_USIC_CH_FIFO_SIZE_t | size, | ||
const uint32_t | limit | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
data_pointer | Start position inside the FIFO buffer. Range: 0 to 63. |
size | Required size of the transmit FIFO. Range: XMC_USIC_CH_FIFO_DISABLED, XMC_USIC_CH_FIFO_SIZE_2WORDS.. XMC_USIC_CH_FIFO_SIZE_64WORDS |
limit | Threshold of transmit FIFO filling level to be considered for generating events. Range: 0 to size -1. |
void XMC_USIC_CH_TXFIFO_DisableEvent | ( | XMC_USIC_CH_t *const | channel, |
const uint32_t | event | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
event | Events to be disabled. XMC_USIC_CH_TXFIFO_EVENT_CONF_t |
void XMC_USIC_CH_TXFIFO_EnableEvent | ( | XMC_USIC_CH_t *const | channel, |
const uint32_t | event | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
event | Events to be enabled. Multiple events can be bitwise OR combined. XMC_USIC_CH_TXFIFO_EVENT_CONF_t |
Note: API only enables the events. For interrupt generation, interrupt node must be configured and NVIC node must be enabled.
void XMC_USIC_CH_TXFIFO_Flush | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
uint32_t XMC_USIC_CH_TXFIFO_GetEvent | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Note: Event status flags should be cleared by the user explicitly.
uint32_t XMC_USIC_CH_TXFIFO_GetLevel | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
bool XMC_USIC_CH_TXFIFO_IsEmpty | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
bool XMC_USIC_CH_TXFIFO_IsFull | ( | XMC_USIC_CH_t *const | channel | ) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
void XMC_USIC_CH_TXFIFO_PutData | ( | XMC_USIC_CH_t *const | channel, |
const uint16_t | data | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
data | Data to be transmitted. Range: 16bit unsigned data. minimum= 0, maximum= 65535 |
void XMC_USIC_CH_TXFIFO_PutDataEx | ( | XMC_USIC_CH_t *const | channel, |
const uint16_t | data, | ||
uint8_t | loc | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
data | Data to be transmitted. Range: 16bit unsigned data. minimum= 0, maximum= 65535 |
loc | Input location. |
void XMC_USIC_CH_TXFIFO_PutDataFLEMode | ( | XMC_USIC_CH_t *const | channel, |
const uint16_t | data, | ||
const uint32_t | frame_length | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
data | Data to be transmitted. |
frame_length | Frame length to be configured while transmitting the data. Range: minimum= 0, maximum= 31. e.g: For a frame length of 16, set frame_length as 15. |
void XMC_USIC_CH_TXFIFO_PutDataHPCMode | ( | XMC_USIC_CH_t *const | channel, |
const uint16_t | data, | ||
const uint32_t | frame_length | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
data | Data to be transmitted. |
frame_length | Frame length to be configured while transmitting the data. Range: minimum= 0, maximum= 31. e.g: For a frame length of 16, set frame_length as 15. |
void XMC_USIC_CH_TXFIFO_SetInterruptNodePointer | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_TXFIFO_INTERRUPT_NODE_POINTER_t | interrupt_node, | ||
const uint32_t | service_request | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
interrupt_node | Node pointer representing the transmit FIFO events. Range: XMC_USIC_CH_TXFIFO_INTERRUPT_NODE_POINTER_STANDARD, XMC_USIC_CH_TXFIFO_INTERRUPT_NODE_POINTER_ALTERNATE |
service_request | The service request to be used for interrupt generation. Range: 0 to 5. |
Note: NVIC node should be explicitly enabled for the interrupt generation.
void XMC_USIC_CH_TXFIFO_SetSizeTriggerLimit | ( | XMC_USIC_CH_t *const | channel, |
const XMC_USIC_CH_FIFO_SIZE_t | size, | ||
const uint32_t | limit | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
size | Required size of the transmit FIFO. Range: XMC_USIC_CH_FIFO_DISABLED, XMC_USIC_CH_FIFO_SIZE_2WORDS.. XMC_USIC_CH_FIFO_SIZE_64WORDS |
limit | Threshold for transmit FIFO filling level to be considered for generating events. Range: 0 to size -1. |
void XMC_USIC_CH_TXFIFO_SetTriggerLimit | ( | XMC_USIC_CH_t *const | channel, |
const uint32_t | limit | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
limit | Threshold for transmit FIFO filling level to be considered for generating events. Range: 0 to fifo size -1. |
void XMC_USIC_CH_WriteToTBUF | ( | XMC_USIC_CH_t *const | channel, |
const uint16_t | data | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
data | Data to be transmitted. Range: 16bit unsigned data. minimum= 0, maximum= 65535 |
void XMC_USIC_CH_WriteToTBUFTCI | ( | XMC_USIC_CH_t *const | channel, |
const uint16_t | data, | ||
const uint32_t | transmit_control_information | ||
) |
channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
data | Data to be transmitted. |
transmit_control_information | transmit control information to be configured while transmitting the data. Range: minimum= 0, maximum= 31. |
void XMC_USIC_Disable | ( | XMC_USIC_t *const | usic | ) |
usic | Pointer to USIC module handler of type XMC_USIC_t. Range: XMC_USIC0 to XMC_USIC2 based on device support. |
void XMC_USIC_Enable | ( | XMC_USIC_t *const | usic | ) |
usic | Pointer to USIC module handler of type XMC_USIC_t. Range: XMC_USIC0 to XMC_USIC2 based on device support. |
bool XMC_USIC_IsChannelValid | ( | const XMC_USIC_CH_t *const | channel | ) |
< USIC0 channel 0 base address
< USIC0 channel 1 base address
< USIC1 channel 0 base address
< USIC1 channel 1 base address
< USIC2 channel 0 base address
< USIC2 channel 1 base address
bool XMC_USIC_IsModuleValid | ( | const XMC_USIC_t *const | module | ) |
< USIC0 module base address
< USIC1 module base address
< USIC2 module base address