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

< The class which defines how we will talk to this device over I2C More...

#include <Adafruit_I2CDevice.h>

Public Member Functions

 Adafruit_I2CDevice (uint8_t addr, TwoWire *theWire=&Wire)
 
uint8_t address (void)
 
bool begin (bool addr_detect=true)
 
void end (void)
 
bool detected (void)
 
bool read (uint8_t *buffer, size_t len, bool stop=true)
 
bool write (const uint8_t *buffer, size_t len, bool stop=true, const uint8_t *prefix_buffer=nullptr, size_t prefix_len=0)
 
bool write_then_read (const uint8_t *write_buffer, size_t write_len, uint8_t *read_buffer, size_t read_len, bool stop=false)
 
bool setSpeed (uint32_t desiredclk)
 
size_t maxBufferSize ()
 How many bytes we can read in a transaction.
 

Detailed Description

< The class which defines how we will talk to this device over I2C

Member Function Documentation

◆ maxBufferSize()

size_t Adafruit_I2CDevice::maxBufferSize ( )
inline

How many bytes we can read in a transaction.

Returns
The size of the Wire receive/transmit buffer

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