CryptoAuthLib
Atmel CryptoAuthentication Library
hal_swi_uart.h
Go to the documentation of this file.
1 
42 #ifndef HAL_SWI_UART_H_
43 #define HAL_SWI_UART_H_
44 
45 #ifdef SAMD21_START
46  #include "swi_uart_samd21_start.h"
47 #elif defined (SAMD21_ASF)
48  #include "swi_uart_samd21_asf.h"
49 #elif defined (XMEGA_ASF)
50  #include "swi_uart_xmega_a3bu_asf.h"
51 #endif
52 
53 
61 #define SWI_WAKE_TOKEN ((uint8_t)0x00)
62 #define SWI_FLAG_CMD ((uint8_t)0x77)
63 #define SWI_FLAG_TX ((uint8_t)0x88)
64 #define SWI_FLAG_IDLE ((uint8_t)0xBB)
65 #define SWI_FLAG_SLEEP ((uint8_t)0xCC)
66 
67 ATCA_STATUS hal_swi_send_flag(ATCAIface iface, uint8_t flag);
68 
70 #endif /* HAL_SWI_UART_H_ */
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.c:57
ATXMEGA's ATCA Hardware abstraction layer for SWI interface over XMEGA UART drivers.
Atmel Crypto Auth hardware interface object.
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:254
ATCA_STATUS
Definition: atca_status.h:55