1.31.18.28 USART_SERIAL_SETUP Struct

C

/* Blocking, non-blocking and ring buffer mode */

typedef struct
{
    /* Baud Rate in bits per second */
    uint32_t baudRate;
    
    /* Data width in bits */
    USART_DATA dataWidth;
    
    /* data parity for error checking */
    USART_PARITY parity;
    
    /* Number of stop bits */
    USART_STOP stopBits;
    
} USART_SERIAL_SETUP;

Summary

Defines the data structure which is used to configure USART serial parameters at run time

Description

This may be used to set the serial configurations for USART. An object of this structure is passed as a parameter to the SERCOMx_USART_SerialSetup API.

Remarks

None