CryptoAuthLib
Atmel CryptoAuthentication Library
hal_swi_bitbang.h
Go to the documentation of this file.
1 
42 #ifndef HAL_AT88CK900X_SWI_H_
43 #define HAL_AT88CK900X_SWI_H_
44 
45 
47 #ifndef NO_TARGET_BOARD
48 # define NO_TARGET_BOARD 0
49 #endif
50 #ifndef AT88CK9000
51 # define AT88CK9000 1
52 #endif
53 
54 #if TARGET_BOARD == NO_TARGET_BOARD
55 # error You have to define a target board in project properties.
56 #elif TARGET_BOARD == AT88CK9000
57 # include "swi_bitbang_at88ck9000.h"
58 #endif
59 
60 
71 enum swi_flag {
72  SWI_FLAG_CMD = (uint8_t) 0x77,
73  SWI_FLAG_TX = (uint8_t) 0x88,
74  SWI_FLAG_IDLE = (uint8_t) 0xBB,
75  SWI_FLAG_SLEEP = (uint8_t) 0xCC
76 };
77 
81 typedef struct atcaSWImaster
82 {
83  uint8_t pin_sda;
85  int bus_index;
87 
88 
89 #endif /* HAL_AT88CK900X_SWI_H_ */
int bus_index
for conveniences during interface release phase
Definition: hal_swi_bitbang.h:85
flag requesting to go into Idle mode
Definition: hal_swi_bitbang.h:74
flag preceding a command
Definition: hal_swi_bitbang.h:72
flag requesting to go into Sleep mode
Definition: hal_swi_bitbang.h:75
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.
swi_flag
This enumeration lists flags for SWI.
Definition: hal_swi_bitbang.h:71
uint8_t pin_sda
Definition: hal_swi_bitbang.h:83
definitions for bit-banged SWI
flag requesting a response
Definition: hal_swi_bitbang.h:73