Skip to content

CANPacket.c Functions

Akkshaj Singh edited this page Apr 24, 2021 · 3 revisions

These are functions that are used to help develop CAN packets. Information on what these functions take in as parameters can be found here

Contructing CAN packet

Function Tested
ConstructCANID
ConstructCANPacket
WriteSenderSerialAndPacketID
WritePacketIDOnly

Assembling data larger than a Byte

Function Tested
PackIntIntoDataMSBFirst ✔ - tested every value
PackShortIntoDataMSBFirst
DecodeBytesToIntMSBFirst ✔ - tested every value

Parse Data

Function Tested
GetPacketPriority
GetDeviceSerialNumber
GetSenderDeviceSerialNumber
GetDeviceGroupCode
GetSenderDeviceGroupCode
GetPacketID

Tests

Function Tested
TargetsDevice
PacketIsInGroup
SenderPacketIsInGroup
SenderPacketIsOfDevice
PacketIsOfID