Merge pull request #41 from stuthedew/Fixed-issue-19

Define the meaning of 'type' for BusIO Registers
This commit is contained in:
Limor "Ladyada" Fried 2021-01-20 17:57:12 -05:00 committed by GitHub
commit 43022d91a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -7,8 +7,21 @@
typedef enum _Adafruit_BusIO_SPIRegType { typedef enum _Adafruit_BusIO_SPIRegType {
ADDRBIT8_HIGH_TOREAD = 0, ADDRBIT8_HIGH_TOREAD = 0,
/*!<
* ADDRBIT8_HIGH_TOREAD
* When reading a register you must actually send the value 0x80 + register
* address to the device. e.g. To read the register 0x0B the register value
* 0x8B is sent and to write 0x0B is sent.
*/
AD8_HIGH_TOREAD_AD7_HIGH_TOINC = 1, AD8_HIGH_TOREAD_AD7_HIGH_TOINC = 1,
ADDRBIT8_HIGH_TOWRITE = 2, ADDRBIT8_HIGH_TOWRITE = 2,
/*!<
* ADDRBIT8_HIGH_TOWRITE
* When writing to a register you must actually send the value 0x80 +
* the register address to the device. e.g. To write to the register 0x19 the
* register value 0x99 is sent and to read 0x19 is sent.
*/
} Adafruit_BusIO_SPIRegType; } Adafruit_BusIO_SPIRegType;
/*! /*!