|
Open Model Railroad Network (OpenMRN)
|
Example hardware specification for the TivaTestPacketSource device driver. More...
#include <TivaTestPacketSource.hxx>
Public Types | |
| using | ENABLE_Pin = SW1_Pin |
| GPIO pin structure that turns on the input feed. | |
Static Public Attributes | |
| static constexpr auto | TIMER_BASE = TIMER3_BASE |
| Which timer resource to use. | |
| static constexpr auto | TIMER_PERIPH = SYSCTL_PERIPH_TIMER3 |
| Peripheral to enable the clock output to. | |
| static constexpr auto | ENABLE_PIN_TRUE = false |
| Defines whether the enabe pin is active-high or active-low. | |
| static constexpr auto | TIMER_INTERRUPT = INT_TIMER3A |
| Interrupt number of the timer resource. | |
| static constexpr unsigned | MAX_BUFFER_VALUE = 20000 |
| How may bytes maximum can be accumulated as pending if the reader is not consuming data fast enough. | |
| static constexpr unsigned | PACKET_SIZE = 1500 |
| How many bytes to generate in one go. | |
| static constexpr unsigned | BANDWIDTH = 30000 * 29 / 7 |
| Bytes/sec to generate in total as input. | |
| static constexpr unsigned | TIMER_PERIOD = UINT64_C(80000000) * PACKET_SIZE / BANDWIDTH |
| Number of clock cycles to wait between generating two packets. | |
Example hardware specification for the TivaTestPacketSource device driver.
Definition at line 49 of file TivaTestPacketSource.hxx.
| using TivaTestPktDefHw::ENABLE_Pin = SW1_Pin |
GPIO pin structure that turns on the input feed.
Definition at line 57 of file TivaTestPacketSource.hxx.
|
staticconstexpr |
Bytes/sec to generate in total as input.
in bytes/sec
Definition at line 68 of file TivaTestPacketSource.hxx.
|
staticconstexpr |
Defines whether the enabe pin is active-high or active-low.
Definition at line 59 of file TivaTestPacketSource.hxx.
|
staticconstexpr |
How may bytes maximum can be accumulated as pending if the reader is not consuming data fast enough.
Definition at line 64 of file TivaTestPacketSource.hxx.
|
staticconstexpr |
How many bytes to generate in one go.
Definition at line 66 of file TivaTestPacketSource.hxx.
|
staticconstexpr |
Which timer resource to use.
The driver always uses the TIMER_A+B in concatenated mode.
Definition at line 53 of file TivaTestPacketSource.hxx.
|
staticconstexpr |
Interrupt number of the timer resource.
Definition at line 61 of file TivaTestPacketSource.hxx.
|
staticconstexpr |
Number of clock cycles to wait between generating two packets.
Definition at line 70 of file TivaTestPacketSource.hxx.
|
staticconstexpr |
Peripheral to enable the clock output to.
Definition at line 55 of file TivaTestPacketSource.hxx.