mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-06 09:37:34 +00:00
CAN via IRQ
This commit is contained in:
@@ -75,6 +75,7 @@ namespace sta
|
||||
* @return True if message was retrieved successfully
|
||||
*/
|
||||
bool getCanBusMsg(CanDataMsg * msg, uint32_t timeout);
|
||||
|
||||
/**
|
||||
* @brief Retrieve system message from CAN driver TX queue.
|
||||
*
|
||||
@@ -84,6 +85,13 @@ namespace sta
|
||||
*/
|
||||
bool getCanBusMsg(CanSysMsg * msg, uint32_t timeout);
|
||||
|
||||
/**
|
||||
* @brief Buffers incoming message and sets event to notify the system.
|
||||
*
|
||||
* @param fifo FIFO number of the received message.
|
||||
*/
|
||||
void canCallback(uint32_t fifo);
|
||||
|
||||
void init() override;
|
||||
void func() override;
|
||||
|
||||
@@ -105,8 +113,9 @@ namespace sta
|
||||
|
||||
sta::STM32CanController * canBusController_;
|
||||
|
||||
CanDataMsg canBusDataQueueBuffer_[STA_RTOS_CAN_BUS_QUEUE_LENGTH];
|
||||
CanSysMsg canBusSysQueueBuffer_[STA_RTOS_CAN_BUS_QUEUE_LENGTH];
|
||||
//CanDataMsg canBusDataQueueBuffer_[STA_RTOS_CAN_BUS_QUEUE_LENGTH];
|
||||
CanSysMsg* canBusSysQueueBuffer_[STA_RTOS_CAN_BUS_QUEUE_LENGTH];
|
||||
uint8_t bufferIndex;
|
||||
|
||||
RtosQueue<CanSysMsg> canBusSysQueue_;
|
||||
RtosQueue<CanDataMsg> canBusDataQueue_;
|
||||
|
Reference in New Issue
Block a user