#include <SMBusDevice.h>
◆ SMBusDevice()
◆ ~SMBusDevice()
◆ readBufferData()
| std::vector<uint8_t> readBufferData |
( |
uint8_t |
reg, |
|
|
size_t |
count |
|
) |
| |
- Parameters
-
| reg | the register to start reading from |
| count | the number of bytes to read |
- Returns
- a vector of bytes read from the device
◆ readByte()
◆ readByteData()
| uint8_t readByteData |
( |
uint8_t |
reg | ) |
|
- Parameters
-
- Returns
- the byte read
◆ readData()
| std::vector<uint8_t> readData |
( |
size_t |
count | ) |
|
- Parameters
-
| count | the number of bytes to read |
- Returns
- a vector of bytes
◆ readWord()
- Returns
- the 16-bit little-endian word read
◆ readWordBE()
- Returns
- the 16-bit big-endian word read
◆ readWordData()
| uint16_t readWordData |
( |
uint8_t |
reg | ) |
|
- Parameters
-
| reg | the address of the register |
- Returns
- the 16-bit little-endian word read
◆ readWordDataBE()
| uint16_t readWordDataBE |
( |
uint8_t |
reg | ) |
|
- Parameters
-
| reg | the address of the register |
- Returns
- the 16-bit big-endian word read
◆ writeBufferData()
| void writeBufferData |
( |
uint8_t |
reg, |
|
|
std::vector< uint8_t > |
data |
|
) |
| |
- Parameters
-
| reg | the register to start writing to |
| data | a vector of bytes to write to the device |
◆ writeByte()
| void writeByte |
( |
uint8_t |
data | ) |
|
◆ writeByteData()
| void writeByteData |
( |
uint8_t |
reg, |
|
|
uint8_t |
data |
|
) |
| |
- Parameters
-
| reg | the register to write |
| data | the data to write |
◆ writeData()
| void writeData |
( |
std::vector< uint8_t > |
data | ) |
|
◆ writeWordData()
| void writeWordData |
( |
uint8_t |
reg, |
|
|
uint16_t |
data |
|
) |
| |
- Parameters
-
| reg | the register to write |
| data | the 16-bit little-endian word to write |
◆ writeWordDataBE()
| void writeWordDataBE |
( |
uint8_t |
reg, |
|
|
uint16_t |
data |
|
) |
| |
- Parameters
-
| reg | the register to write |
| data | the 16-bit big-endian word to write |
The documentation for this class was generated from the following file: