ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
|
#include <arpirobot/core/io/DummyIoProvider.hpp>
Protected Member Functions | |
void | gpioMode (unsigned int pin, unsigned int mode) override |
GPIO & PWM. | |
void | gpioWrite (unsigned int pin, unsigned int state) override |
unsigned int | gpioRead (unsigned int pin) override |
void | gpioSetPwmFrequency (unsigned int pin, unsigned int frequency) override |
unsigned int | gpioGetPwmFrequency (unsigned int pin) override |
void | gpioPwm (unsigned int pin, unsigned int value) override |
unsigned int | i2cOpen (unsigned int bus, unsigned int address) override |
I2C. | |
void | i2cClose (unsigned int handle) override |
void | i2cWriteByte (unsigned int handle, uint8_t data) override |
uint8_t | i2cReadByte (unsigned int handle) override |
void | i2cWriteBytes (unsigned int handle, char *buf, unsigned int count) override |
unsigned int | i2cReadBytes (unsigned int handle, char *buf, unsigned int count) override |
void | i2cWriteReg8 (unsigned int handle, uint8_t reg, uint8_t value) override |
uint8_t | i2cReadReg8 (unsigned int handle, uint8_t reg) override |
void | i2cWriteReg16 (unsigned int handle, uint8_t reg, uint16_t value) override |
uint16_t | i2cReadReg16 (unsigned int handle, uint8_t reg) override |
unsigned int | spiOpen (unsigned int bus, unsigned int channel, unsigned int baud, unsigned int mode) override |
SPI. | |
void | spiClose (unsigned int handle) override |
void | spiWrite (unsigned int handle, char *buf, unsigned int count) override |
unsigned int | spiRead (unsigned int handle, char *buf, unsigned int count) override |
unsigned int | uartOpen (char *port, unsigned int baud) override |
UART. | |
void | uartClose (unsigned int handle) override |
unsigned int | uartAvailable (unsigned int handle) override |
void | uartWrite (unsigned int handle, char *buf, unsigned int count) override |
unsigned int | uartRead (unsigned int handle, char *buf, unsigned int count) override |
void | uartWriteByte (unsigned int handle, uint8_t b) override |
uint8_t | uartReadByte (unsigned int handle) override |
Friends | |
class | Io |
Additional Inherited Members | |
![]() | |
IoProvider (const IoProvider &other)=delete | |
IoProvider & | operator= (const IoProvider &other)=delete |
![]() | |
static const unsigned int | GPIO_OUT = 0 |
static const unsigned int | GPIO_IN = 1 |
static const unsigned int | GPIO_LOW = 0 |
static const unsigned int | GPIO_HIGH = 1 |
Fake IoProvider that is used as a fallback on any platform.
Prints IO operations to the log without actually performing the operations. Useful for debugging purposes.