]> cvs.zerfleddert.de Git - proxmark3-svn/blame - armsrc/i2c.h
fix 'hf iclass snoop'
[proxmark3-svn] / armsrc / i2c.h
CommitLineData
43591e64 1//-----------------------------------------------------------------------------
2// Willok, June 2018
3// Edits by Iceman, July 2018
4//
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
7// the license.
8//-----------------------------------------------------------------------------
9// The main i2c code, for communications with smart card module
10//-----------------------------------------------------------------------------
11#ifndef __I2C_H
12#define __I2C_H
13
050aa18b 14#include <stdint.h>
15#include <stdbool.h>
43591e64 16
17#define I2C_DEVICE_ADDRESS_BOOT 0xB0
18#define I2C_DEVICE_ADDRESS_MAIN 0xC0
19
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
151a33c0 26#define I2C_DEVICE_CMD_SEND_T0 0x07
27
43591e64 28
050aa18b 29bool I2C_is_available(void);
43591e64 30
050aa18b 31#ifdef WITH_SMARTCARD
43591e64 32void SmartCardAtr(void);
33void SmartCardRaw(uint64_t arg0, uint64_t arg1, uint8_t *data);
34void SmartCardUpgrade(uint64_t arg0);
43591e64 35void SmartCardSetClock(uint64_t arg0);
36void I2C_print_status(void);
37#endif
050aa18b 38
39#endif // __I2C_H
Impressum, Datenschutz