tutrc_harurobo_lib
読み取り中…
検索中…
一致する文字列を見つけられません
can_base.hpp
[詳解]
1#pragma once
2
3#include <cstddef>
4#include <cstdint>
5
6namespace tutrc_harurobo_lib {
7
8enum class CANIDType {
11};
12
13struct CANMessage {
15 uint32_t id;
16 uint8_t dlc;
17 uint8_t data[8];
18};
19
20class CANBase {
21public:
22 virtual ~CANBase() {}
23 virtual bool transmit(const CANMessage *msg) = 0;
24 virtual bool receive(CANMessage *msg, uint32_t timeout) = 0;
25 virtual size_t available() = 0;
26};
27
28} // namespace tutrc_harurobo_lib
Definition can_base.hpp:20
virtual bool receive(CANMessage *msg, uint32_t timeout)=0
virtual size_t available()=0
virtual ~CANBase()
Definition can_base.hpp:22
virtual bool transmit(const CANMessage *msg)=0
Definition bno055.hpp:10
CANIDType
Definition can_base.hpp:8
Definition can_base.hpp:13
uint8_t dlc
Definition can_base.hpp:16
uint32_t id
Definition can_base.hpp:15
uint8_t data[8]
Definition can_base.hpp:17
CANIDType id_type
Definition can_base.hpp:14