]>
git.zerfleddert.de Git - proxmark3-svn/blob - armsrc/i2c.h
1 //-----------------------------------------------------------------------------
3 // Edits by Iceman, July 2018
5 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
6 // at your option, any later version. See the LICENSE.txt file for the text of
8 //-----------------------------------------------------------------------------
9 // The main i2c code, for communications with smart card module
10 //-----------------------------------------------------------------------------
17 #define I2C_DEVICE_ADDRESS_BOOT 0xB0
18 #define I2C_DEVICE_ADDRESS_MAIN 0xC0
20 #define I2C_DEVICE_CMD_GENERATE_ATR 0x01
21 #define I2C_DEVICE_CMD_SEND 0x02
22 #define I2C_DEVICE_CMD_READ 0x03
23 #define I2C_DEVICE_CMD_SETBAUD 0x04
24 #define I2C_DEVICE_CMD_SIM_CLC 0x05
25 #define I2C_DEVICE_CMD_GETVERSION 0x06
26 #define I2C_DEVICE_CMD_SEND_T0 0x07
29 bool I2C_is_available(void);
32 void SmartCardAtr(void);
33 void SmartCardRaw(uint64_t arg0
, uint64_t arg1
, uint8_t *data
);
34 void SmartCardUpgrade(uint64_t arg0
);
35 void SmartCardSetClock(uint64_t arg0
);
36 void I2C_print_status(void);