Files
seat-firmware/firmware/application/seat_legacy_version_query.h
T

17 lines
557 B
C

#ifndef SEAT_LEGACY_VERSION_QUERY_H
#define SEAT_LEGACY_VERSION_QUERY_H
/* ota_can_frame_t is supplied by ota_can.h before the compatibility runtime. */
static inline bool SeatDemo_IsLegacyVersionQuery(const ota_can_frame_t *frame)
{
return (NULL != frame) &&
(frame->identifier == 0x300ul) &&
(frame->dlc == 8u) &&
(frame->data[0] == 0x10u) &&
(frame->data[1] == 0x10u) &&
(frame->data[4] == 0u) && (frame->data[5] == 0u) &&
(frame->data[6] == 0u) && (frame->data[7] == 0u);
}
#endif