CryptoAuthLib
Microchip CryptoAuthentication Library
hal_i2c_bitbang.h
Go to the documentation of this file.
1 
28 #ifndef HAL_I2C_BITBANG_H_
29 #define HAL_I2C_BITBANG_H_
30 
31 
32 
33 
34 
35 #if BOARD == AT88CK9000
36 # include "i2c_bitbang_at88ck9000.h"
37 #endif
38 
39 #if (SAMD21 == 1)
40 #include "i2c_bitbang_samd21.h"
41 #endif
42 
43 
55 {
56  I2C_WRITE = (uint8_t)0x00,
57  I2C_READ = (uint8_t)0x01
58 };
59 
63 typedef struct atcaI2Cmaster
64 {
65  uint32_t pin_sda;
66  uint32_t pin_scl;
67  int ref_ct;
69  int bus_index;
71 
74 #endif /* HAL_AT88CK900X_I2C_H_ */
int ref_ct
Definition: hal_at90usb1287_i2c_asf.h:52
uint32_t pin_sda
Definition: hal_i2c_bitbang.h:65
read command flag
Definition: hal_i2c_bitbang.h:57
write command flag
Definition: hal_i2c_bitbang.h:56
uint32_t pin_scl
Definition: hal_i2c_bitbang.h:66
int bus_index
for conveniences during interface release phase
Definition: hal_at90usb1287_i2c_asf.h:53
definitions for bit-banged I2C
i2c_read_write_flag
This enumeration lists flags for I2C read or write addressing.
Definition: hal_i2c_bitbang.h:54
this is the hal_data for ATCA HAL created using ASF
Definition: hal_at90usb1287_i2c_asf.h:49
struct atcaI2Cmaster ATCAI2CMaster_t
This is the hal_data for ATCA HAL.