CryptoAuthLib
Microchip CryptoAuthentication Library
hal_swi_bitbang.h
Go to the documentation of this file.
1 
28 #ifndef HAL_SWI_BITBANG_H_
29 #define HAL_SWI_BITBANG_H_
30 
31 
32 #if BOARD == AT88CK9000
33 #include "swi_bitbang_at88ck9000.h"
34 #endif
35 
36 #if (SAMD21 == 1)
37 #include "swi_bitbang_samd21.h"
38 #endif
39 
40 
41 
53 {
54  SWI_FLAG_CMD = (uint8_t)0x77,
55  SWI_FLAG_TX = (uint8_t)0x88,
56  SWI_FLAG_IDLE = (uint8_t)0xBB,
57  SWI_FLAG_SLEEP = (uint8_t)0xCC
58 };
59 
63 typedef struct atcaSWImaster
64 {
65  uint8_t pin_sda;
66  int ref_ct;
68  int bus_index;
70 
73 #endif /* HAL_SWI_BITBANG_H_ */
int ref_ct
Definition: hal_swi_bitbang.h:66
flag requesting to go into Idle mode
Definition: hal_swi_bitbang.h:56
flag requesting to go into Sleep mode
Definition: hal_swi_bitbang.h:57
flag preceding a command
Definition: hal_swi_bitbang.h:54
flag requesting a response
Definition: hal_swi_bitbang.h:55
swi_flag
This enumeration lists flags for SWI.
Definition: hal_swi_bitbang.h:52
Hardware Interface Functions - SWI bit-banged.
This is the hal_data for ATCA HAL.
Definition: hal_swi_bitbang.h:63
struct atcaSWImaster ATCASWIMaster_t
This is the hal_data for ATCA HAL.
int bus_index
for conveniences during interface release phase
Definition: hal_swi_bitbang.h:68
uint8_t pin_sda
Definition: hal_swi_bitbang.h:65