CryptoAuthLib
Microchip CryptoAuthentication Library
hal_swi_uart.h
Go to the documentation of this file.
1 
28 #ifndef HAL_SWI_UART_H_
29 #define HAL_SWI_UART_H_
30 
31 #ifdef ATMEL_START
32  #include "swi_uart_start.h"
33 #elif defined (SAMD21_ASF)
34  #include "swi_uart_samd21_asf.h"
35 #elif defined (XMEGA_ASF)
36  #include "swi_uart_xmega_a3bu_asf.h"
37 #elif defined (AT90USB_ASF)
39 #endif
40 
41 
49 #define SWI_WAKE_TOKEN ((uint8_t)0x00)
50 #define SWI_FLAG_CMD ((uint8_t)0x77)
51 #define SWI_FLAG_TX ((uint8_t)0x88)
52 #define SWI_FLAG_IDLE ((uint8_t)0xBB)
53 #define SWI_FLAG_SLEEP ((uint8_t)0xCC)
54 
55 ATCA_STATUS hal_swi_send_flag(ATCAIface iface, uint8_t flag);
56 
58 #endif /* HAL_SWI_UART_H_ */
ATMEGA's ATCA Hardware abstraction layer for SWI interface over AT90USB1287 UART drivers.
ATCA_STATUS
Definition: atca_status.h:41
ATXMEGA's ATCA Hardware abstraction layer for SWI interface over UART drivers.
atca_iface is the C object backing ATCAIface. See the atca_iface.h file for details on the ATCAIface ...
Definition: atca_iface.h:129
ATXMEGA's ATCA Hardware abstraction layer for SWI interface over XMEGA UART drivers.
ATCA_STATUS hal_swi_send_flag(ATCAIface iface, uint8_t data)
HAL implementation of SWI send one byte over UART.
Definition: hal_swi_uart.c:274