|
Embedded Artistry Framework
Embedded Systems C++ Framework
|
#include <twi_helper.hpp>
Static Public Member Functions | |
| static void | setSCLPin (uint8_t inst, uint8_t port, uint8_t pin) noexcept |
| static void | setSDAPin (uint8_t inst, uint8_t port, uint8_t pin) noexcept |
| static void | setFrequency (uint8_t inst, embvm::i2c::baud freq) noexcept |
| static void | disable (uint8_t inst) noexcept |
| static void | enable (uint8_t inst) noexcept |
| static void | disable_interrupts (uint8_t inst) noexcept |
| static void | enable_interrupts (uint8_t inst) noexcept |
| static void | set_transfer_address (uint8_t inst, uint8_t address) noexcept |
| static void | tx_transfer (uint8_t inst, const uint8_t *data, size_t length, bool no_stop) noexcept |
| Blocking Transfer Implementation. More... | |
| static void | rx_transfer (uint8_t inst, uint8_t *data, size_t length) noexcept |
| static void | stop_condition (uint8_t inst) noexcept |
Static Public Attributes | |
| static constexpr bool | NO_STOP = true |
| static constexpr bool | STOP = false |
Private Member Functions | |
| nRFTWITranslator ()=default | |
| This class can't be instantiated. More... | |
| ~nRFTWITranslator ()=default | |
|
privatedefault |
This class can't be instantiated.
|
privatedefault |
|
staticnoexcept |
References disable_shortcuts_(), getTWIInst(), and embutil::volatile_store().
Referenced by nRF51i2cMaster_Blocking< TTWIIndex, TSclPin, TSdaPin >::stop_().
|
staticnoexcept |
References getTWIInst().
|
staticnoexcept |
References getTWIInst(), and embutil::volatile_store().
Referenced by nRF51i2cMaster_Blocking< TTWIIndex, TSclPin, TSdaPin >::start_().
|
staticnoexcept |
References assert, check_event_(), clear_event_(), getTWIInst(), length, set_shortcuts_(), and task_trigger_().
References getTWIInst(), and embutil::volatile_store().
Referenced by nRF51i2cMaster_Blocking< TTWIIndex, TSclPin, TSdaPin >::transfer_().
|
staticnoexcept |
References getTWIFrequency(), getTWIInst(), and embutil::volatile_store().
Referenced by nRF51i2cMaster_Blocking< TTWIIndex, TSclPin, TSdaPin >::baudrate_().
References getTWIInst(), and embutil::volatile_store().
Referenced by nRF51i2cMaster_Blocking< TTWIIndex, TSclPin, TSdaPin >::start_().
References getTWIInst(), and embutil::volatile_store().
Referenced by nRF51i2cMaster_Blocking< TTWIIndex, TSclPin, TSdaPin >::start_().
|
staticnoexcept |
References getTWIInst(), and task_trigger_().
Referenced by nRF51i2cMaster_Blocking< TTWIIndex, TSclPin, TSdaPin >::transfer_().
|
staticnoexcept |
Blocking Transfer Implementation.
Implementation note: If you clear the TWI_EVENET_TXDSENT event, the data that is already loaded into the TX buffer will be re-sent. You must load the next TX byte and then clear the data.
References assert, check_event_(), clear_event_(), getTWIInst(), length, set_shortcuts_(), and task_trigger_().
1.8.15