JM9 XRCU Board 0.1.3
Libraries API Reference
Loading...
Searching...
No Matches
Adafruit_BusIO_Register Class Reference

The class which defines a device register (a location to read/write data from) More...

#include <Adafruit_BusIO_Register.h>

Public Member Functions

 Adafruit_BusIO_Register (Adafruit_I2CDevice *i2cdevice, uint16_t reg_addr, uint8_t width=1, uint8_t byteorder=LSBFIRST, uint8_t address_width=1)
 
 Adafruit_BusIO_Register (Adafruit_SPIDevice *spidevice, uint16_t reg_addr, Adafruit_BusIO_SPIRegType type, uint8_t width=1, uint8_t byteorder=LSBFIRST, uint8_t address_width=1)
 
 Adafruit_BusIO_Register (Adafruit_I2CDevice *i2cdevice, Adafruit_SPIDevice *spidevice, Adafruit_BusIO_SPIRegType type, uint16_t reg_addr, uint8_t width=1, uint8_t byteorder=LSBFIRST, uint8_t address_width=1)
 
bool read (uint8_t *buffer, uint8_t len)
 
bool read (uint8_t *value)
 
bool read (uint16_t *value)
 
uint32_t read (void)
 
uint32_t readCached (void)
 
bool write (uint8_t *buffer, uint8_t len)
 
bool write (uint32_t value, uint8_t numbytes=0)
 
uint8_t width (void)
 
void setWidth (uint8_t width)
 
void setAddress (uint16_t address)
 
void setAddressWidth (uint16_t address_width)
 
void print (Stream *s=&Serial)
 
void println (Stream *s=&Serial)
 

Detailed Description

The class which defines a device register (a location to read/write data from)


The documentation for this class was generated from the following file: