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

Functions

SerialTsChannel UartDmaTsChannel UartTsChannel primaryChannel (TS_PRIMARY_UxART_PORT)
 
SerialTsChannel UartDmaTsChannel UartTsChannel secondaryChannel (TS_SECONDARY_UxART_PORT)
 
void startSerialChannels ()
 
SerialTsChannelBasegetBluetoothChannel ()
 

Variables

static PrimaryChannelThread primaryChannelThread
 
static SecondaryChannelThread secondaryChannelThread
 

Function Documentation

◆ getBluetoothChannel()

SerialTsChannelBase * getBluetoothChannel ( )

Definition at line 106 of file tunerstudio_io_serial_ports.cpp.

106 {
107#if defined(TS_SECONDARY_UxART_PORT)
108 // Prefer secondary channel for bluetooth
109 return &secondaryChannel;
110#elif defined(TS_PRIMARY_UxART_PORT)
111 // Use primary channel for BT if no secondary exists
112 return &primaryChannel;
113#endif
114
115 // no HW serial channels on this board, fail
116 return nullptr;
117}
SerialTsChannel UartDmaTsChannel UartTsChannel primaryChannel(TS_PRIMARY_UxART_PORT)
SerialTsChannel UartDmaTsChannel UartTsChannel secondaryChannel(TS_SECONDARY_UxART_PORT)

Referenced by bluetoothStart(), and tsProcessOne().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ primaryChannel()

SerialTsChannel UartDmaTsChannel UartTsChannel primaryChannel ( TS_PRIMARY_UxART_PORT  )

Referenced by getBluetoothChannel().

Here is the caller graph for this function:

◆ secondaryChannel()

SerialTsChannel UartDmaTsChannel UartTsChannel secondaryChannel ( TS_SECONDARY_UxART_PORT  )

Referenced by getBluetoothChannel().

Here is the caller graph for this function:

◆ startSerialChannels()

void startSerialChannels ( )

Definition at line 93 of file tunerstudio_io_serial_ports.cpp.

93 {
94#if defined(TS_PRIMARY_UxART_PORT)
96#endif
97
98#if defined(TS_SECONDARY_UxART_PORT)
99 // do not start thread if not configured - give user a chance to use same peripheral for kline
102 }
103#endif
104}
static constexpr engine_configuration_s * engineConfiguration
bool isBrainPinValid(brain_pin_e brainPin)
static PrimaryChannelThread primaryChannelThread
static SecondaryChannelThread secondaryChannelThread

Referenced by runRusEfi().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ primaryChannelThread

PrimaryChannelThread primaryChannelThread
static

Definition at line 53 of file tunerstudio_io_serial_ports.cpp.

Referenced by startSerialChannels().

◆ secondaryChannelThread

SecondaryChannelThread secondaryChannelThread
static

Definition at line 90 of file tunerstudio_io_serial_ports.cpp.

Referenced by startSerialChannels().

Go to the source code of this file.