32 lines
649 B
C
32 lines
649 B
C
//
|
|
// Created by cfif on 05.04.2024.
|
|
//
|
|
|
|
#ifndef HVAC_CAN_SPAM_RECEIVER_H
|
|
#define HVAC_CAN_SPAM_RECEIVER_H
|
|
|
|
#include <cmsis_os.h>
|
|
#include "CanSerialPortFrame.h"
|
|
#include "ccu_candb-binutil.h"
|
|
|
|
typedef struct {
|
|
|
|
tSerialPortFrameIO *ioCanFrame;
|
|
osMutexId_t access;
|
|
can_rx_message_type canFrame;
|
|
|
|
struct {
|
|
osThreadId_t id;
|
|
uint32_t stack[512];
|
|
StaticTask_t controlBlock;
|
|
osThreadAttr_t attr;
|
|
} thread;
|
|
|
|
} tCanSpamReceiver;
|
|
|
|
void CanSpamReceiver_Init(tCanSpamReceiver *env, tSerialPortFrameIO *ioCanFrame);
|
|
|
|
void CanSpamReceiver_StartThread(tCanSpamReceiver *env);
|
|
|
|
#endif //HVAC_CAN_SPAM_RECEIVER_H
|