|
Embedded Artistry Framework
Embedded Systems C++ Framework
|
#include <twim_helper.hpp>
Static Public Member Functions | |
| static void | setSCLPin (NordicTWIM inst, uint8_t port, uint8_t pin) noexcept |
| static void | setSDAPin (NordicTWIM inst, uint8_t port, uint8_t pin) noexcept |
| static void | setFrequency (NordicTWIM inst, embvm::i2c::baud freq) noexcept |
| static void | setCallback (NordicTWIM inst, nRFTWIM_cb_t &cb) noexcept |
| static void | disable (NordicTWIM inst) noexcept |
| static void | enable (NordicTWIM inst) noexcept |
| static void | disable_interrupts (NordicTWIM inst) noexcept |
| static void | enable_interrupts (NordicTWIM inst) noexcept |
| static void | set_interrupt_priority (NordicTWIM inst, uint8_t priority) noexcept |
| static void | set_transfer_address (NordicTWIM inst, uint8_t address) noexcept |
| static embvm::i2c::status | txrx_transfer_blocking (NordicTWIM inst, const uint8_t *tx_data, size_t tx_len, uint8_t *rx_data, size_t rx_len) noexcept |
| static embvm::i2c::status | tx_transfer_blocking (NordicTWIM inst, const uint8_t *data, size_t length, bool no_stop) noexcept |
| static embvm::i2c::status | rx_transfer_blocking (NordicTWIM inst, uint8_t *data, size_t length) |
| static embvm::i2c::status | txrx_transfer (NordicTWIM inst, const uint8_t *tx_data, size_t tx_len, uint8_t *rx_data, size_t rx_len) noexcept |
| Blocking Transfer Implementation. More... | |
| static embvm::i2c::status | tx_transfer (NordicTWIM inst, const uint8_t *data, size_t length, bool no_stop) noexcept |
| Blocking Transfer Implementation. More... | |
| static embvm::i2c::status | rx_transfer (NordicTWIM inst, uint8_t *data, size_t length) noexcept |
| static void | stop_condition (NordicTWIM inst) noexcept |
Static Public Attributes | |
| static constexpr bool | NO_STOP = true |
| static constexpr bool | STOP = false |
Private Member Functions | |
| nRFTWIMTranslator ()=default | |
| This class can't be instantiated. More... | |
| ~nRFTWIMTranslator ()=default | |
|
privatedefault |
This class can't be instantiated.
|
privatedefault |
|
staticnoexcept |
References disable_shortcuts_(), getTWIInst(), interrupts_disable_(), and embutil::volatile_store().
Referenced by nRFi2cMaster< NordicTWIM0, nRFPinID< 0, 27 >, nRFPinID< 0, 26 > >::stop_().
|
staticnoexcept |
References NordicNVIC::disable(), and getTWIInst().
Referenced by nRFi2cMaster< NordicTWIM0, nRFPinID< 0, 27 >, nRFPinID< 0, 26 > >::disableInterrupts().
|
staticnoexcept |
References getTWIInst(), and embutil::volatile_store().
Referenced by nRFi2cMaster< NordicTWIM0, nRFPinID< 0, 27 >, nRFPinID< 0, 26 > >::start_().
|
staticnoexcept |
References NordicNVIC::enable(), and getTWIInst().
Referenced by nRFi2cMaster< NordicTWIM0, nRFPinID< 0, 27 >, nRFPinID< 0, 26 > >::enableInterrupts().
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
References getTWIInst(), and NordicNVIC::priority().
Referenced by nRFi2cMaster< NordicTWIM0, nRFPinID< 0, 27 >, nRFPinID< 0, 26 > >::start_().
|
staticnoexcept |
References getTWIInst(), and embutil::volatile_store().
Referenced by nRFi2cMaster< NordicTWIM0, nRFPinID< 0, 27 >, nRFPinID< 0, 26 > >::transfer_impl_().
|
staticnoexcept |
References assert, NordicTWIM0, and NordicTWIM1.
Referenced by nRFi2cMaster< NordicTWIM0, nRFPinID< 0, 27 >, nRFPinID< 0, 26 > >::start_().
|
staticnoexcept |
References getTWIFrequency(), getTWIInst(), and embutil::volatile_store().
Referenced by nRFi2cMaster< NordicTWIM0, nRFPinID< 0, 27 >, nRFPinID< 0, 26 > >::baudrate_().
|
staticnoexcept |
References getTWIInst(), and embutil::volatile_store().
Referenced by nRFi2cMaster< NordicTWIM0, nRFPinID< 0, 27 >, nRFPinID< 0, 26 > >::start_().
|
staticnoexcept |
References getTWIInst(), and embutil::volatile_store().
Referenced by nRFi2cMaster< NordicTWIM0, nRFPinID< 0, 27 >, nRFPinID< 0, 26 > >::start_().
|
staticnoexcept |
References getTWIInst(), task_trigger_(), and TWIM_TASK_STOP.
Referenced by nRFi2cMaster< NordicTWIM0, nRFPinID< 0, 27 >, nRFPinID< 0, 26 > >::transfer_impl_().
|
staticnoexcept |
Blocking Transfer Implementation.
Implementation note: If you clear the TWIM_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 embvm::i2c::enqueued, get_converted_error(), getTWIInst(), interrupts_disable_(), interrupts_enable_(), kickoff_tx(), length, embvm::i2c::ok, and set_tx_buffer_().
Referenced by nRFi2cMaster< NordicTWIM0, nRFPinID< 0, 27 >, nRFPinID< 0, 26 > >::transfer_impl_().
|
staticnoexcept |
|
staticnoexcept |
Blocking Transfer Implementation.
Implementation note: If you clear the TWIM_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 embvm::i2c::enqueued, get_converted_error(), getTWIInst(), interrupts_disable_(), interrupts_enable_(), kickoff_txrx(), embvm::i2c::ok, set_rx_buffer_(), and set_tx_buffer_().
Referenced by nRFi2cMaster< NordicTWIM0, nRFPinID< 0, 27 >, nRFPinID< 0, 26 > >::transfer_impl_().
|
staticnoexcept |
1.8.15