|
| Tcs3414 (Data &data, uint8_t address=addr ()) |
|
modm::ResumableResult< bool > | initialize () |
|
modm::ResumableResult< bool > | configure (Gain gain=Gain::X1, Prescaler prescaler=Prescaler::D1) |
|
modm::ResumableResult< bool > | setGain (Gain gain=Gain::X1, Prescaler prescaler=Prescaler::D1) |
| The gain can be used to adjust the sensitivity of all ADC output channels.
|
|
modm::ResumableResult< bool > | setIntegrationTime (IntegrationMode mode, NominalIntegrationTime time) |
| Sets the integration time for the ADCs.
|
|
modm::ResumableResult< bool > | setIntegrationTime (IntegrationMode mode, SyncPulseCount time) |
| Sets the integration time for the ADCs.
|
|
modm::ResumableResult< bool > | readColor () |
| Read current samples of ADC conversions for all channels.
|
|
modm::ResumableResult< bool > | readRegisters (RegisterAddress address, uint8_t *values, uint8_t count=1) |
|
modm::ResumableResult< bool > | writeRegister (RegisterAddress address, uint8_t value) |
|
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.
|
|
|
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 () |
|
template<typename I2cMaster>
class modm::Tcs3414< I2cMaster >
TCS3414 Digital Color Sensors
- See also
- tcs3414
- Author
- David Hebbeker, Niklas Hauser