Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add function get_data_vector with index
[apps/agl-service-can-low-level.git]
/
low-can-binding
/
can
/
message
/
message.hpp
diff --git
a/low-can-binding/can/message/message.hpp
b/low-can-binding/can/message/message.hpp
index
5be1ff1
..
f0e1bf0
100644
(file)
--- a/
low-can-binding/can/message/message.hpp
+++ b/
low-can-binding/can/message/message.hpp
@@
-30,14
+30,6
@@
#define MAX_BCM_CAN_FRAMES 257
#define MAX_BCM_CAN_FRAMES 257
-struct bcm_msg
-{
- struct bcm_msg_head msg_head;
- union {
- struct canfd_frame fd_frames[MAX_BCM_CAN_FRAMES];
- struct can_frame frames[MAX_BCM_CAN_FRAMES];
- };
-};
/**
* @enum message_format_t
/**
* @enum message_format_t
@@
-74,6
+66,7
@@
public:
int get_sub_id() const;
const uint8_t* get_data() const;
const std::vector<uint8_t> get_data_vector() const;
int get_sub_id() const;
const uint8_t* get_data() const;
const std::vector<uint8_t> get_data_vector() const;
+ const std::vector<uint8_t> get_data_vector(int start,int end) const;
uint32_t get_length() const;
uint64_t get_timestamp() const;
uint32_t get_length() const;
uint64_t get_timestamp() const;