17#if EFI_SIMULATOR || EFI_UNIT_TEST
18#include "fifo_buffer.h"
36 m_frame.
IDE = isExtended ? CAN_IDE_EXT : CAN_IDE_STD;
40 m_frame.common.XTD = isExtended;
63#if EFI_SIMULATOR || EFI_UNIT_TEST
67 printf(
"%s Sending CAN%d message: ID=%x/l=%x %x %x %x %x %x %x %x %x \n",
96 if (verboseCan0 || verboseCan1) {
97 efiPrintf(
"%s Sending CAN%d message: ID=%x/l=%x %x %x %x %x %x %x %x %x",
109 msg_t msg = canTransmit(
device, CAN_ANY_MAILBOX, &
m_frame, TIME_MS2I(100));
const char * getCanCategory(CanCategory value)
fifo_buffer< CANTxFrame, 1024 > txCanBuffer
fifo_buffer< CANTxFrame, 1024 > txCanBuffer
uint8_t & operator[](size_t)
Read & write the raw underlying 8-byte buffer.
static void setDevice(CANDriver *device1, CANDriver *device2)
void setBit(size_t byteIdx, size_t bitIdx)
Set a single bit in the transmit buffer. Useful for single-bit flags.
void setShortValueMsb(uint16_t value, size_t offset)
static CANDriver * s_devices[2]
CanTxMessage(CanCategory category, uint32_t eid, uint8_t dlc=8, size_t bus=0, bool isExtended=false)
void setShortValue(uint16_t value, size_t offset)
Write a 16-bit short value to the buffer. Note: this writes in Intel little endian byte order.
TunerStudioOutputChannels outputChannels
static EngineAccessor engine
static constexpr engine_configuration_s * engineConfiguration
uint8_t data8[8]
Frame data.
uint8_t IDE
Identifier type.
void setArrayValues(TValue(&array)[TSize], float value)