VitroIO SDK
Software development kit for Vitro Shard.
Loading...
Searching...
No Matches
canbus_frame.h
Go to the documentation of this file.
1#ifndef VITROIO_SDK_CANBUS_FRAME_H
2#define VITROIO_SDK_CANBUS_FRAME_H
3
4#include <mbed.h>
5
6namespace vitroio
7{
8
9namespace sdk
10{
11
24{
25public:
27
29
35 void setNodeId(uint32_t id);
36
42 void setParameterId(uint32_t id);
43
51 bool setDataLength(uint32_t length);
52
58 uint32_t nodeId() const;
59
65 uint32_t parameterId() const;
66
72 uint32_t dataLength() const;
73
79 uint32_t maxDataLength() const;
80
90 char* data();
91
100 const char* data() const;
101
102private:
103 friend class Canbus;
104
105 CANMessage message_;
106
107 CANMessage* message();
108 const CANMessage* message() const;
109};
110
115} // namespace sdk
116
117} // namespace vitroio
118
119#endif // VITROIO_SDK_CANBUS_FRAME_H
Class is a wrapper for mbed::CANMessage. It provides interface allowing creation of frames complied w...
Definition: canbus_frame.h:24
void setNodeId(uint32_t id)
Function allows to set node ID for the frame.
uint32_t maxDataLength() const
Function allows to obtain maximum data length of the frame.
uint32_t parameterId() const
Function allows to obtain parameter ID from the frame.
void setParameterId(uint32_t id)
Function allows to set parameter ID for the frame.
uint32_t dataLength() const
Function allows to obtain data length of the frame.
char * data()
Function allows a direct access to the frame data for modifications.
uint32_t nodeId() const
Function allows to obtain node ID from the frame.
const char * data() const
Function allows to get frame data for reading.
bool setDataLength(uint32_t length)
Function allows to set data length of the frame.
Class is a wrapper for mbed::CAN class and provides interface for CanbusFrame type.
Definition: canbus.h:50
The namespace contains all of components of vitro-shard-sdk and components based on the sdk....
Definition: can_layer.h:9