rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions | Variables
can_tx.cpp File Reference

Detailed Description

CAN transmission handling. This file handles the dispatch of various outgoing regularly scheduled CAN message types.

Date
Mar 19, 2020
Author
Matthew Kennedy, (c) 2020

Definition in file can_tx.cpp.

Functions

static CI roundTxPeriodToCycle (uint16_t period)
 
PUBLIC_API_WEAK bool boardEnableSendWidebandInfo ()
 
void resetCanWriteCycle ()
 

Variables

CanListenercanListeners_head
 
static uint16_t m_cycleCount = 0
 

Function Documentation

◆ boardEnableSendWidebandInfo()

PUBLIC_API_WEAK bool boardEnableSendWidebandInfo ( )

Definition at line 41 of file can_tx.cpp.

41{ return true; }

◆ resetCanWriteCycle()

void resetCanWriteCycle ( )

Definition at line 45 of file can_tx.cpp.

45 {
46 m_cycleCount = 0;
47}
static uint16_t m_cycleCount
Definition can_tx.cpp:43

◆ roundTxPeriodToCycle()

static CI roundTxPeriodToCycle ( uint16_t  period)
static

Definition at line 29 of file can_tx.cpp.

29 {
30 if (period < 10) return CI::_5ms;
31 else if (period < 20) return CI::_10ms;
32 else if (period < 50) return CI::_20ms;
33 else if (period < 100) return CI::_50ms;
34 else if (period < 200) return CI::_100ms;
35 else if (period < 250) return CI::_200ms;
36 else if (period < 500) return CI::_250ms;
37 else if (period < 1000) return CI::_500ms;
38 else return CI::_1000ms;
39}
beuint32_t period

Referenced by CanWrite::PeriodicTask().

Here is the caller graph for this function:

Variable Documentation

◆ canListeners_head

CanListener* canListeners_head
extern

Definition at line 69 of file can_rx.cpp.

Referenced by CanWrite::PeriodicTask(), registerCanListener(), and serviceCanSubscribers().

◆ m_cycleCount

uint16_t m_cycleCount = 0
static

Definition at line 43 of file can_tx.cpp.

Referenced by CanWrite::PeriodicTask(), and resetCanWriteCycle().

Go to the source code of this file.