|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Runtime state of one GPTP timer unit. More...
Data Fields | |
| bool | enabled |
| PTPTMEC.TEq: unit is counting. | |
| uint64_t | off_sec |
| Committed offset seconds (48-bit). | |
| uint32_t | off_nsec |
| Committed offset nanoseconds (below 1e9). | |
| uint64_t | acc_sec |
| Free-running whole seconds. | |
| uint64_t | acc_fixed |
| Free-running sub-second, 5.27 fixed-point ns. | |
| uint32_t | latch_gptp_m |
| PTPGPTPTMtM latched on the L read. | |
| uint32_t | latch_gptp_u |
| PTPGPTPTMtU latched on the L read. | |
| uint32_t | latch_avtp_u |
| PTPAVTPTMtU latched on the L read. | |
Runtime state of one GPTP timer unit.
enabled tracks PTPTMEC.TEq. off_sec / off_nsec are the committed 78-bit offset (set on the PTPTOVCtL write). acc_sec plus acc_fixed are the free-running counter: acc_fixed is the sub-second part in 5.27 fixed-point nanoseconds (always below one second) and acc_sec the whole seconds carried out of it, so the pair never overflows. latch_gptp_m / latch_gptp_u / latch_avtp_u hold the M/U halves sampled when the matching L register was last read, giving an atomic three-read view.
Definition at line 138 of file board_periph_gptp.c.
| uint64_t gptp_timer_t::acc_fixed |
Free-running sub-second, 5.27 fixed-point ns.
Definition at line 143 of file board_periph_gptp.c.
Referenced by internal_gptp_report(), internal_gptp_tick_timer(), and internal_gptp_time_now().
| uint64_t gptp_timer_t::acc_sec |
Free-running whole seconds.
Definition at line 142 of file board_periph_gptp.c.
Referenced by internal_gptp_report(), internal_gptp_tick_timer(), and internal_gptp_time_now().
| bool gptp_timer_t::enabled |
PTPTMEC.TEq: unit is counting.
Definition at line 139 of file board_periph_gptp.c.
Referenced by internal_gptp_report(), internal_gptp_tick_timer(), and internal_gptp_time_now().
| uint32_t gptp_timer_t::latch_avtp_u |
PTPAVTPTMtU latched on the L read.
Definition at line 146 of file board_periph_gptp.c.
Referenced by internal_gptp_read_monitor().
| uint32_t gptp_timer_t::latch_gptp_m |
PTPGPTPTMtM latched on the L read.
Definition at line 144 of file board_periph_gptp.c.
Referenced by internal_gptp_read_monitor().
| uint32_t gptp_timer_t::latch_gptp_u |
PTPGPTPTMtU latched on the L read.
Definition at line 145 of file board_periph_gptp.c.
Referenced by internal_gptp_read_monitor().
| uint32_t gptp_timer_t::off_nsec |
Committed offset nanoseconds (below 1e9).
Definition at line 141 of file board_periph_gptp.c.
Referenced by internal_gptp_time_now().
| uint64_t gptp_timer_t::off_sec |
Committed offset seconds (48-bit).
Definition at line 140 of file board_periph_gptp.c.
Referenced by internal_gptp_time_now().