34 CAN(
int busId,
int deviceId);
46 CAN(
int busId,
int deviceId,
int deviceManufacturer,
int deviceType);
void StopPacketRepeating(int apiId)
Stop a repeating packet with a specific ID.
void WriteRTRFrame(int apiId, const HAL_CANMessage &message)
Write an RTR frame to the CAN device with a specific ID.
void WritePacketRepeating(int apiId, const HAL_CANMessage &message, int repeatMs)
Write a repeating packet to the CAN device with a specific ID.
CAN & operator=(CAN &&)=default
int WriteRTRFrameNoError(int apiId, const HAL_CANMessage &message)
Write an RTR frame to the CAN device with a specific ID.
static constexpr HAL_CANDeviceType kTeamDeviceType
Team device type.
Definition CAN.hpp:154
bool ReadPacketNew(int apiId, HAL_CANReceiveMessage *data)
Read a new CAN packet.
int WritePacketNoError(int apiId, const HAL_CANMessage &message)
Write a packet to the CAN device with a specific ID.
CAN(int busId, int deviceId, int deviceManufacturer, int deviceType)
Create a new CAN communication interface with a specific device ID, manufacturer and device type.
int WritePacketRepeatingNoError(int apiId, const HAL_CANMessage &message, int repeatMs)
Write a repeating packet to the CAN device with a specific ID.
static constexpr HAL_CANManufacturer kTeamManufacturer
Team manufacturer.
Definition CAN.hpp:151
bool ReadPacketTimeout(int apiId, int timeoutMs, HAL_CANReceiveMessage *data)
Read a CAN packet.
void WritePacket(int apiId, const HAL_CANMessage &message)
Write a packet to the CAN device with a specific ID.
CAN(int busId, int deviceId)
Create a new CAN communication interface with the specific device ID.
bool ReadPacketLatest(int apiId, HAL_CANReceiveMessage *data)
Read a CAN packet.
A move-only C++ wrapper around a HAL handle.
Definition Types.hpp:16
HAL_CANDeviceType
The CAN device type.
Definition CANAPITypes.h:22
HAL_CANManufacturer
The CAN manufacturer ID.
Definition CANAPITypes.h:60
@ HAL_CAN_Dev_kMiscellaneous
Miscellaneous.
Definition CANAPITypes.h:44
@ HAL_CAN_Man_kTeamUse
Team use.
Definition CANAPITypes.h:78
Definition CvSource.hpp:15
Definition CANAPITypes.h:139
Definition CANAPITypes.h:148