Speeduino
Loading...
Searching...
No Matches
tsCommandController.h
Go to the documentation of this file.
1
6#include "../../../statuses.h"
7#include "../../../config_pages.h"
8
9static constexpr uint16_t TS_CMD_TEST_DSBL = 256;
10static constexpr uint16_t TS_CMD_TEST_ENBL = 257;
11
12static constexpr uint16_t TS_CMD_INJ1_ON = 513;
13static constexpr uint16_t TS_CMD_INJ1_OFF = 514;
14static constexpr uint16_t TS_CMD_INJ1_PULSED = 515;
15static constexpr uint16_t TS_CMD_INJ2_ON = 516;
16static constexpr uint16_t TS_CMD_INJ2_OFF = 517;
17static constexpr uint16_t TS_CMD_INJ2_PULSED = 518;
18static constexpr uint16_t TS_CMD_INJ3_ON = 519;
19static constexpr uint16_t TS_CMD_INJ3_OFF = 520;
20static constexpr uint16_t TS_CMD_INJ3_PULSED = 521;
21static constexpr uint16_t TS_CMD_INJ4_ON = 522;
22static constexpr uint16_t TS_CMD_INJ4_OFF = 523;
23static constexpr uint16_t TS_CMD_INJ4_PULSED = 524;
24static constexpr uint16_t TS_CMD_INJ5_ON = 525;
25static constexpr uint16_t TS_CMD_INJ5_OFF = 526;
26static constexpr uint16_t TS_CMD_INJ5_PULSED = 527;
27static constexpr uint16_t TS_CMD_INJ6_ON = 528;
28static constexpr uint16_t TS_CMD_INJ6_OFF = 529;
29static constexpr uint16_t TS_CMD_INJ6_PULSED = 530;
30static constexpr uint16_t TS_CMD_INJ7_ON = 531;
31static constexpr uint16_t TS_CMD_INJ7_OFF = 532;
32static constexpr uint16_t TS_CMD_INJ7_PULSED = 533;
33static constexpr uint16_t TS_CMD_INJ8_ON = 534;
34static constexpr uint16_t TS_CMD_INJ8_OFF = 535;
35static constexpr uint16_t TS_CMD_INJ8_PULSED = 536;
36
37static constexpr uint16_t TS_CMD_IGN1_ON = 769;
38static constexpr uint16_t TS_CMD_IGN1_OFF = 770;
39static constexpr uint16_t TS_CMD_IGN1_PULSED = 771;
40static constexpr uint16_t TS_CMD_IGN2_ON = 772;
41static constexpr uint16_t TS_CMD_IGN2_OFF = 773;
42static constexpr uint16_t TS_CMD_IGN2_PULSED = 774;
43static constexpr uint16_t TS_CMD_IGN3_ON = 775;
44static constexpr uint16_t TS_CMD_IGN3_OFF = 776;
45static constexpr uint16_t TS_CMD_IGN3_PULSED = 777;
46static constexpr uint16_t TS_CMD_IGN4_ON = 778;
47static constexpr uint16_t TS_CMD_IGN4_OFF = 779;
48static constexpr uint16_t TS_CMD_IGN4_PULSED = 780;
49static constexpr uint16_t TS_CMD_IGN5_ON = 781;
50static constexpr uint16_t TS_CMD_IGN5_OFF = 782;
51static constexpr uint16_t TS_CMD_IGN5_PULSED = 783;
52static constexpr uint16_t TS_CMD_IGN6_ON = 784;
53static constexpr uint16_t TS_CMD_IGN6_OFF = 785;
54static constexpr uint16_t TS_CMD_IGN6_PULSED = 786;
55static constexpr uint16_t TS_CMD_IGN7_ON = 787;
56static constexpr uint16_t TS_CMD_IGN7_OFF = 788;
57static constexpr uint16_t TS_CMD_IGN7_PULSED = 789;
58static constexpr uint16_t TS_CMD_IGN8_ON = 790;
59static constexpr uint16_t TS_CMD_IGN8_OFF = 791;
60static constexpr uint16_t TS_CMD_IGN8_PULSED = 792;
61
62static constexpr uint16_t TS_CMD_STM32_REBOOT = 12800;
63static constexpr uint16_t TS_CMD_STM32_BOOTLOADER = 12801;
64
65static constexpr uint16_t TS_CMD_SD_FORMAT = 13057;
66
67static constexpr uint16_t TS_CMD_VSS_60KMH = 39168U; //0x99x00
68static constexpr uint16_t TS_CMD_VSS_RATIO1 = 39169U;
69static constexpr uint16_t TS_CMD_VSS_RATIO2 = 39170U;
70static constexpr uint16_t TS_CMD_VSS_RATIO3 = 39171U;
71static constexpr uint16_t TS_CMD_VSS_RATIO4 = 39172U;
72static constexpr uint16_t TS_CMD_VSS_RATIO5 = 39173U;
73static constexpr uint16_t TS_CMD_VSS_RATIO6 = 39174U;
74
82
const config2 & page2
Definition engineProtection.cpp:438
const config2 const config4 const config6 statuses & current
Definition scheduler_fuel_controller.cpp:400
const config4 const config13 & page13
Definition scheduler_ignition_controller.cpp:428
Definition array.h:14
Definition config_pages.h:845
Definition config_pages.h:175
The status struct with current values for all 'live' variables.
Definition statuses.h:47
static constexpr uint16_t TS_CMD_IGN3_OFF
Definition tsCommandController.h:44
static constexpr uint16_t TS_CMD_IGN3_PULSED
Definition tsCommandController.h:45
static constexpr uint16_t TS_CMD_TEST_ENBL
Definition tsCommandController.h:10
static constexpr uint16_t TS_CMD_TEST_DSBL
Definition tsCommandController.h:9
static constexpr uint16_t TS_CMD_INJ2_OFF
Definition tsCommandController.h:16
bool handleTsCommand(uint16_t command, statuses &current, config2 &page2)
Process a command from TunerStudio.
Definition tsCommandController.cpp:196
static constexpr uint16_t TS_CMD_INJ1_ON
Definition tsCommandController.h:12
static constexpr uint16_t TS_CMD_IGN2_ON
Definition tsCommandController.h:40
static constexpr uint16_t TS_CMD_IGN7_ON
Definition tsCommandController.h:55
static constexpr uint16_t TS_CMD_INJ4_OFF
Definition tsCommandController.h:22
static constexpr uint16_t TS_CMD_IGN4_PULSED
Definition tsCommandController.h:48
static constexpr uint16_t TS_CMD_IGN2_PULSED
Definition tsCommandController.h:42
static constexpr uint16_t TS_CMD_IGN5_ON
Definition tsCommandController.h:49
static constexpr uint16_t TS_CMD_INJ3_OFF
Definition tsCommandController.h:19
static constexpr uint16_t TS_CMD_IGN1_ON
Definition tsCommandController.h:37
static constexpr uint16_t TS_CMD_INJ8_PULSED
Definition tsCommandController.h:35
static constexpr uint16_t TS_CMD_IGN3_ON
Definition tsCommandController.h:43
static constexpr uint16_t TS_CMD_INJ5_OFF
Definition tsCommandController.h:25
static constexpr uint16_t TS_CMD_VSS_RATIO3
Definition tsCommandController.h:70
static constexpr uint16_t TS_CMD_INJ6_PULSED
Definition tsCommandController.h:29
static constexpr uint16_t TS_CMD_INJ7_PULSED
Definition tsCommandController.h:32
static constexpr uint16_t TS_CMD_VSS_RATIO1
Definition tsCommandController.h:68
static constexpr uint16_t TS_CMD_IGN4_ON
Definition tsCommandController.h:46
static constexpr uint16_t TS_CMD_INJ6_OFF
Definition tsCommandController.h:28
static constexpr uint16_t TS_CMD_STM32_BOOTLOADER
Definition tsCommandController.h:63
static constexpr uint16_t TS_CMD_STM32_REBOOT
Definition tsCommandController.h:62
static constexpr uint16_t TS_CMD_INJ5_ON
Definition tsCommandController.h:24
static constexpr uint16_t TS_CMD_INJ1_OFF
Definition tsCommandController.h:13
static constexpr uint16_t TS_CMD_INJ8_OFF
Definition tsCommandController.h:34
static constexpr uint16_t TS_CMD_VSS_RATIO4
Definition tsCommandController.h:71
static constexpr uint16_t TS_CMD_INJ4_ON
Definition tsCommandController.h:21
static constexpr uint16_t TS_CMD_INJ7_ON
Definition tsCommandController.h:30
static constexpr uint16_t TS_CMD_IGN7_OFF
Definition tsCommandController.h:56
static constexpr uint16_t TS_CMD_VSS_RATIO2
Definition tsCommandController.h:69
static constexpr uint16_t TS_CMD_IGN8_ON
Definition tsCommandController.h:58
static constexpr uint16_t TS_CMD_INJ6_ON
Definition tsCommandController.h:27
static constexpr uint16_t TS_CMD_IGN1_OFF
Definition tsCommandController.h:38
static constexpr uint16_t TS_CMD_INJ2_PULSED
Definition tsCommandController.h:17
static constexpr uint16_t TS_CMD_IGN5_PULSED
Definition tsCommandController.h:51
static constexpr uint16_t TS_CMD_INJ5_PULSED
Definition tsCommandController.h:26
static constexpr uint16_t TS_CMD_VSS_RATIO5
Definition tsCommandController.h:72
static constexpr uint16_t TS_CMD_IGN6_PULSED
Definition tsCommandController.h:54
static constexpr uint16_t TS_CMD_IGN6_OFF
Definition tsCommandController.h:53
static constexpr uint16_t TS_CMD_INJ2_ON
Definition tsCommandController.h:15
static constexpr uint16_t TS_CMD_IGN2_OFF
Definition tsCommandController.h:41
static constexpr uint16_t TS_CMD_INJ7_OFF
Definition tsCommandController.h:31
static constexpr uint16_t TS_CMD_IGN5_OFF
Definition tsCommandController.h:50
static constexpr uint16_t TS_CMD_INJ8_ON
Definition tsCommandController.h:33
void pulsedCommandController(const statuses &current, const config13 &page13)
Start/stop pulsing injectors & coils based on configuration set by handleTsCommand.
Definition tsCommandController.cpp:386
static constexpr uint16_t TS_CMD_IGN4_OFF
Definition tsCommandController.h:47
static constexpr uint16_t TS_CMD_VSS_RATIO6
Definition tsCommandController.h:73
static constexpr uint16_t TS_CMD_IGN6_ON
Definition tsCommandController.h:52
static constexpr uint16_t TS_CMD_VSS_60KMH
Definition tsCommandController.h:67
static constexpr uint16_t TS_CMD_IGN1_PULSED
Definition tsCommandController.h:39
static constexpr uint16_t TS_CMD_INJ3_PULSED
Definition tsCommandController.h:20
static constexpr uint16_t TS_CMD_SD_FORMAT
Definition tsCommandController.h:65
static constexpr uint16_t TS_CMD_INJ1_PULSED
Definition tsCommandController.h:14
static constexpr uint16_t TS_CMD_IGN7_PULSED
Definition tsCommandController.h:57
static constexpr uint16_t TS_CMD_IGN8_OFF
Definition tsCommandController.h:59
static constexpr uint16_t TS_CMD_IGN8_PULSED
Definition tsCommandController.h:60
static constexpr uint16_t TS_CMD_INJ3_ON
Definition tsCommandController.h:18
static constexpr uint16_t TS_CMD_INJ4_PULSED
Definition tsCommandController.h:23