CryptoAuthLib
Atmel CryptoAuthentication Library
hal_i2c_bitbang.h
Go to the documentation of this file.
1 
42 #ifndef HAL_AT88CK900X_I2C_H_
43 #define HAL_AT88CK900X_I2C_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 "i2c_bitbang_at88ck9000.h"
58 #endif
59 
60 
72  I2C_WRITE = (uint8_t) 0x00,
73  I2C_READ = (uint8_t) 0x01
74 };
75 
79 typedef struct atcaI2Cmaster
80 {
81  uint32_t pin_sda;
82  uint32_t pin_scl;
83  int ref_ct;
85  int bus_index;
87 
90 #endif /* HAL_AT88CK900X_I2C_H_ */
int bus_index
for conveniences during interface release phase
Definition: hal_i2c_bitbang.h:85
uint32_t pin_scl
Definition: hal_i2c_bitbang.h:82
This is the hal_data for ATCA HAL.
Definition: hal_i2c_bitbang.h:79
definitions for bit-banged I2C
uint32_t pin_sda
Definition: hal_i2c_bitbang.h:81
struct atcaI2Cmaster ATCAI2CMaster_t
This is the hal_data for ATCA HAL.
read command flag
Definition: hal_i2c_bitbang.h:73
int ref_ct
Definition: hal_i2c_bitbang.h:83
write command flag
Definition: hal_i2c_bitbang.h:72
i2c_read_write_flag
This enumeration lists flags for I2C read or write addressing.
Definition: hal_i2c_bitbang.h:71