|
enum | Addr : uint8_t { GND = 0b00,
SCL = 0b01,
SDA = 0b10,
VCC = 0b11
} |
|
enum | Register : uint16_t {
LED_ON_OFF = 0x8000,
LED_OPEN = 0x8018,
LED_SHORT = 0x8030,
PWM = 0x8100,
AUTO_BREATH_MODE = 0x8200,
CONFIGURATION = 0x8300,
GLOBAL_CURRENT_CONTROL = 0x8301,
ABM_1 = 0x8302,
ABM_2 = 0x8306,
ABM_3 = 0x830A,
TIME_UPDATE = 0x830E,
SW_PULL_UP = 0x830F,
CS_PULL_DOWN = 0x8310,
RESET = 0x8311,
COMMAND = 0xFD,
COMMAND_WRITE_LOCK = 0xFE,
INTERRUPT_MASK = 0xF0,
INTERRUPT_STATUS = 0xF1
} |
|
enum | Resistor : uint8_t {
None = 0,
kOhm_0_5 = 1,
kOhm_1 = 2,
kOhm_2 = 3,
kOhm_4 = 4,
kOhm_8 = 5,
kOhm_16 = 6,
kOhm_32 = 7
} |
|
|
| Is31fl3733 (uint8_t address=addr ()) |
|
bool | enable (uint8_t x, uint8_t y) |
|
void | enableAll () |
|
bool | disable (uint8_t x, uint8_t y) |
|
void | disableAll () |
|
bool | setPwm (uint8_t x, uint8_t y, uint8_t pwm) |
|
void | setAllPwm (uint8_t pwm) |
|
LedBinaryData & | ledsOpen () |
|
LedBinaryData & | ledsShort () |
|
modm::ResumableResult< bool > | reset () |
|
modm::ResumableResult< bool > | setGlobalCurrent (uint8_t current) |
|
modm::ResumableResult< bool > | clearSoftwareShutdown () |
|
modm::ResumableResult< bool > | setSwPullUp (Resistor value) |
|
modm::ResumableResult< bool > | setCsPullDown (Resistor value) |
|
modm::ResumableResult< bool > | triggerOpenShortDetection () |
|
modm::ResumableResult< bool > | readOpenShort () |
|
modm::ResumableResult< bool > | writeOnOff () |
|
modm::ResumableResult< bool > | writePwm () |
|
modm::ResumableResult< bool > | writeRegister (Register reg, uint8_t value, uint8_t offset=0) |
|
modm::ResumableResult< bool > | readRegister (Register reg, uint8_t *const value, uint8_t offset=0) |
|
void | attachConfigurationHandler (I2c::ConfigurationHandler handler) |
|
modm::ResumableResult< bool > | ping () |
|
modm::ResumableResult< bool > | read (uint8_t *buffer, std::size_t size) |
| Starts a write transaction and waits until finished.
|
|
void | setAddress (uint8_t address) |
|
modm::ResumableResult< bool > | write (const uint8_t *buffer, std::size_t size) |
| Starts a write transaction and waits until finished.
|
|
modm::ResumableResult< bool > | writeRead (const uint8_t *writeBuffer, std::size_t writeSize, uint8_t *readBuffer, std::size_t readSize) |
| Starts a write-read transaction and waits until finished.
|
|
|
modm::ResumableResult< bool > | setPage (Register reg) |
|
int8_t | getResumableDepth () const |
|
bool | isResumableRunning () const |
|
bool | isTransactionRunning () |
|
modm::ResumableResult< bool > | runTransaction () |
| Starts our own transaction and waits until finished.
|
|
bool | startRead (uint8_t *buffer, std::size_t size) |
| Configures the transaction with a read operation and starts it.
|
|
bool | startTransaction () |
| Starts the transaction with our own transaction object.
|
|
bool | startTransaction (modm::I2cTransaction *transaction) |
| Starts the transaction with a separate transaction object.
|
|
bool | startWrite (const uint8_t *buffer, std::size_t size) |
| Configures the transaction with a write operation and starts it.
|
|
bool | startWriteRead (const uint8_t *writeBuffer, std::size_t writeSize, uint8_t *readBuffer, std::size_t readSize) |
| Configures the transaction with a write/read operation and starts it.
|
|
void | stopResumable () |
|
bool | wasTransactionSuccessful () |
|