43 #ifndef SWI_UART_SAMD21_START_H
44 #define SWI_UART_SAMD21_START_H
47 #include <hri_sercom_v200.h>
48 #include "atmel_start.h"
64 #define MAX_SWI_BUSES 6 // SAMD21 has up to 6 SERCOMS that can be configured as UART
66 #define RECEIVE_MODE 0 // UART Receive mode, RX enabled
67 #define TRANSMIT_MODE 1 // UART Transmit mode, RX disabled
89 #endif // SWI_UART_ASF_H
int bus_index
for conveniences during interface release phase
Definition: hal_swi_bitbang.h:85
ATCA_STATUS swi_uart_deinit(ATCASWIMaster_t *instance)
Implementation of SWI UART deinit.
Definition: swi_uart_samd21_asf.c:108
This is the hal_data for ATCA HAL.
Definition: hal_swi_bitbang.h:81
struct atcaSWImaster ATCASWIMaster_t
this is the hal_data for ATCA HAL for ASF SERCOM
ATCA_STATUS swi_uart_send_byte(ATCASWIMaster_t *instance, uint8_t data)
HAL implementation of SWI UART send byte over ASF. This function send one byte over UART...
Definition: swi_uart_samd21_asf.c:170
ATCA_STATUS swi_uart_init(ATCASWIMaster_t *instance)
Implementation of SWI UART init.
Definition: swi_uart_samd21_asf.c:64
void swi_uart_setbaud(ATCASWIMaster_t *instance, uint32_t baudrate)
implementation of SWI UART change baudrate.
Definition: swi_uart_samd21_asf.c:120
void swi_uart_mode(ATCASWIMaster_t *instance, uint8_t mode)
implementation of SWI UART change mode.
Definition: swi_uart_samd21_asf.c:142
Single aggregation point for all CryptoAuthLib header files.
void swi_uart_discover_buses(int swi_uart_buses[], int max_buses)
discover UART buses available for this hardware this maintains a list of logical to physical bus mapp...
Definition: swi_uart_samd21_asf.c:155
ATCA_STATUS
Definition: atca_status.h:55
ATCA_STATUS swi_uart_receive_byte(ATCASWIMaster_t *instance, uint8_t *data)
HAL implementation of SWI UART receive bytes over ASF. This function receive one byte over UART...
Definition: swi_uart_samd21_asf.c:198
struct usart_sync_descriptor USART_SWI
Definition: swi_uart_samd21_start.h:74