Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
TivaTestPktDefHw Struct Reference

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.
 

Detailed Description

Example hardware specification for the TivaTestPacketSource device driver.

Definition at line 49 of file TivaTestPacketSource.hxx.

Member Typedef Documentation

◆ ENABLE_Pin

GPIO pin structure that turns on the input feed.

Definition at line 57 of file TivaTestPacketSource.hxx.

Member Data Documentation

◆ BANDWIDTH

constexpr unsigned TivaTestPktDefHw::BANDWIDTH = 30000 * 29 / 7
staticconstexpr

Bytes/sec to generate in total as input.

in bytes/sec

Definition at line 68 of file TivaTestPacketSource.hxx.

◆ ENABLE_PIN_TRUE

constexpr auto TivaTestPktDefHw::ENABLE_PIN_TRUE = false
staticconstexpr

Defines whether the enabe pin is active-high or active-low.

Definition at line 59 of file TivaTestPacketSource.hxx.

◆ MAX_BUFFER_VALUE

constexpr unsigned TivaTestPktDefHw::MAX_BUFFER_VALUE = 20000
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.

◆ PACKET_SIZE

constexpr unsigned TivaTestPktDefHw::PACKET_SIZE = 1500
staticconstexpr

How many bytes to generate in one go.

Definition at line 66 of file TivaTestPacketSource.hxx.

◆ TIMER_BASE

constexpr auto TivaTestPktDefHw::TIMER_BASE = TIMER3_BASE
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.

◆ TIMER_INTERRUPT

constexpr auto TivaTestPktDefHw::TIMER_INTERRUPT = INT_TIMER3A
staticconstexpr

Interrupt number of the timer resource.

Definition at line 61 of file TivaTestPacketSource.hxx.

◆ TIMER_PERIOD

constexpr unsigned TivaTestPktDefHw::TIMER_PERIOD = UINT64_C(80000000) * PACKET_SIZE / BANDWIDTH
staticconstexpr

Number of clock cycles to wait between generating two packets.

Definition at line 70 of file TivaTestPacketSource.hxx.

◆ TIMER_PERIPH

constexpr auto TivaTestPktDefHw::TIMER_PERIPH = SYSCTL_PERIPH_TIMER3
staticconstexpr

Peripheral to enable the clock output to.

Definition at line 55 of file TivaTestPacketSource.hxx.


The documentation for this struct was generated from the following file: