rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Data Structures | Functions
tunerstudio_io.h File Reference

Data Structures

class  TsChannelBase
 
class  SerialTsChannelBase
 
class  SerialTsChannel
 
class  UartTsChannel
 

Functions

void startSerialChannels ()
 
SerialTsChannelBasegetBluetoothChannel ()
 
void startCanConsole ()
 

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:

◆ startCanConsole()

void startCanConsole ( )

Definition at line 104 of file ts_can_channel.cpp.

104 {
105 canTsThread.start();
107}
void canStreamInit(void)
static CanTsThread canTsThread

Referenced by commonEarlyInit().

Here is the call graph for this function:
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:

Go to the source code of this file.