stm32rcos
読み取り中…
検索中…
一致する文字列を見つけられません
can.hpp
[詳解]
1#pragma once
2
3#include "stm32rcos/hal.hpp"
4
5#include "can/can_base.hpp"
6#include "can/can_filter.hpp"
7#include "can/can_message.hpp"
8
9#ifdef HAL_CAN_MODULE_ENABLED
10#include "can/detail/bxcan.hpp"
11#endif
12
13#ifdef HAL_FDCAN_MODULE_ENABLED
14#include "can/detail/fdcan.hpp"
15#endif
16
17namespace stm32rcos {
18namespace peripheral {
19
77template <auto *Handle, class HandleType = decltype(Handle)>
78class Can : public CanBase {
79public:
80 bool start() override;
81 bool stop() override;
82 bool transmit(const CanMessage &msg, uint32_t timeout) override;
83 bool attach_rx_queue(const CanFilter &filter,
84 core::Queue<CanMessage> &queue) override;
85 bool detach_rx_queue(const core::Queue<CanMessage> &queue) override;
86};
87
88} // namespace peripheral
89} // namespace stm32rcos
Definition queue.hpp:14
Definition can_base.hpp:13
Definition can.hpp:78
bool attach_rx_queue(const CanFilter &filter, core::Queue< CanMessage > &queue) override
bool detach_rx_queue(const core::Queue< CanMessage > &queue) override
bool transmit(const CanMessage &msg, uint32_t timeout) override
Definition can.hpp:18
Definition mutex.hpp:9
Definition can_filter.hpp:8
Definition can_message.hpp:9