Sansa Connect: Use deviceid in USB Serial Number

Atmel AT88SC6416C CryptoMemory is almost I2C compatible. The device
is connected to bitbanged I2C bus shared with compliant I2C devices.

Change-Id: Iec54702db1bdfb93c01291eef18ec60391c63b16
This commit is contained in:
Tomasz Moń 2021-07-10 08:56:32 +02:00
parent 663539619c
commit b4ecd612f7
No known key found for this signature in database
GPG key ID: 92BA8820D4D517C8
8 changed files with 183 additions and 0 deletions

View file

@ -49,5 +49,15 @@ int i2c_write_data(int bus_index, int bus_address, int address,
int i2c_read_data(int bus_index, int bus_address, int address,
unsigned char* buf, int count);
/* Special function for devices that can appear on I2C bus but do not
* comply to I2C specification. Such devices include AT88SC6416C crypto
* memory. To read data from AT88SC6416C, a write I2C transaction starts,
* 3 bytes are written and then, in the middle of transaction, the device
* starts sending data.
*/
int i2c_write_read_data(int bus_index, int bus_address,
const unsigned char* buf_write, int count_write,
unsigned char* buf_read, int count_read);
#endif /* _GEN_I2C_ */