◆ _Controller()
| ArchXT_SPI::_Controller::_Controller |
( |
ArchXT_SPI & |
peripheral | ) |
|
|
explicit |
◆ frame_completed()
| void ArchXT_SPI::_Controller::frame_completed |
( |
| ) |
|
|
overrideprotectedvirtual |
Virtual callback function called on the last clock edge of a byte shift. Can be overriden by upper layers to signal when the transmission/reception of a byte has been completed. The base function does nothing.
Reimplemented from SPI::EndPoint.
◆ init()
◆ input_clock()
| void ArchXT_SPI::_Controller::input_clock |
( |
bool |
state | ) |
|
|
inline |
◆ mock_transfer()
| uint8_t ArchXT_SPI::_Controller::mock_transfer |
( |
uint8_t |
rx_frame | ) |
|
◆ mode()
◆ next()
Callback from the cycle loop.
- Note
- there's no guarantee the method will be called exactly on the required 'when' cycle. The only guarantee is "called 'when' <= 'current cycle'", the implementations must account for this.
- Parameters
-
| when | current 'when' cycle, at which the timer was scheduled |
- Returns
- the next 'when' the timer requires to be called at.
- Note
- The next 'when' can be in the 'past' (i.e. <= 'current cycle'). In this case, the timer will be called again within the same cycle with the given next 'when'. The only constraint is that it must be greater than the previous 'when'. If it's negative or zero, the timer is removed from the queue.
Implements CycleTimer.
◆ peek_rx()
| uint8_t ArchXT_SPI::_Controller::peek_rx |
( |
| ) |
const |
◆ pin_driver()
| PinDriver & ArchXT_SPI::_Controller::pin_driver |
( |
| ) |
|
|
inline |
◆ pop_rx()
| uint8_t ArchXT_SPI::_Controller::pop_rx |
( |
| ) |
|
◆ push_tx()
| void ArchXT_SPI::_Controller::push_tx |
( |
uint8_t |
data, |
|
|
bool |
force_buffer |
|
) |
| |
◆ read_data_input()
| bool ArchXT_SPI::_Controller::read_data_input |
( |
| ) |
|
|
overrideprotectedvirtual |
Virtual function called by the internal logic to read the DATA IN line
- Returns
- level Line level true=HIGH, false=LOW
Implements SPI::EndPoint.
◆ reset()
| void ArchXT_SPI::_Controller::reset |
( |
| ) |
|
◆ rx_available()
| unsigned int ArchXT_SPI::_Controller::rx_available |
( |
| ) |
const |
|
inline |
◆ selected()
| bool ArchXT_SPI::_Controller::selected |
( |
| ) |
const |
|
inline |
◆ set_bit_delay()
| void ArchXT_SPI::_Controller::set_bit_delay |
( |
cycle_count_t |
delay | ) |
|
◆ set_mode()
◆ set_selected()
| void ArchXT_SPI::_Controller::set_selected |
( |
bool |
selected | ) |
|
◆ set_serial_mode()
◆ tx_pending()
| bool ArchXT_SPI::_Controller::tx_pending |
( |
| ) |
const |
|
inline |
◆ write_data_output()
| void ArchXT_SPI::_Controller::write_data_output |
( |
bool |
level | ) |
|
|
overrideprotectedvirtual |
Virtual function called by the internal logic to write to the DATA OUT line
- Parameters
-
| level | Line level true=HIGH, false=LOW |
Implements SPI::EndPoint.
The documentation for this class was generated from the following file: