43class Adafruit_BusIO_Register {
46 uint8_t width = 1, uint8_t byteorder = LSBFIRST,
47 uint8_t address_width = 1);
50 Adafruit_BusIO_SPIRegType type, uint8_t width = 1,
51 uint8_t byteorder = LSBFIRST,
52 uint8_t address_width = 1);
56 Adafruit_BusIO_SPIRegType type, uint16_t reg_addr,
57 uint8_t width = 1, uint8_t byteorder = LSBFIRST,
58 uint8_t address_width = 1);
60 bool read(uint8_t *buffer, uint8_t len);
61 bool read(uint8_t *value);
62 bool read(uint16_t *value);
64 uint32_t readCached(
void);
65 bool write(uint8_t *buffer, uint8_t len);
66 bool write(uint32_t value, uint8_t numbytes = 0);
70 void setWidth(uint8_t width);
71 void setAddress(uint16_t address);
72 void setAddressWidth(uint16_t address_width);
74 void print(
Stream *s = &Serial);
75 void println(
Stream *s = &Serial);
80 Adafruit_BusIO_SPIRegType _spiregtype;
82 uint8_t _width, _addrwidth, _byteorder;