summaryrefslogtreecommitdiffstats
path: root/src/can-utils.h
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-02-16 16:08:49 +0000
committerRomain Forlot <romain.forlot@iot.bzh>2017-02-16 16:08:49 +0000
commit109ba77a295811c5037c2c4dfc618c3f7e047228 (patch)
treef5095c745294623aeeab181e8e00707406b4f737 /src/can-utils.h
parent94073a891ccf610fcc8be64676ad474989986c40 (diff)
Adding canbus read method
Change-Id: I438d885516e9cbe499d333ff3065c5e9d6d4d99a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can-utils.h')
-rw-r--r--src/can-utils.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/can-utils.h b/src/can-utils.h
index 04303e3..3a6070a 100644
--- a/src/can-utils.h
+++ b/src/can-utils.h
@@ -94,9 +94,10 @@ class CanBus_c {
int can_socket_;
bool is_fdmode_on_;
- struct sockaddr_can txAddress;
+ struct sockaddr_can txAddress_;
std::thread th_reading_;
+ bool is_running_;
std::thread th_decoding_;
std::thread th_pushing_;
@@ -108,10 +109,12 @@ class CanBus_c {
int close();
void start_threads();
+ bool is_running();
+
int send_can_message(CanMessage_c can_msg);
CanMessage_c* next_can_message();
- void insert_new_can_message(CanMessage_c *can_msg);
+ void insert_new_can_message(CanMessage_c &can_msg);
openxc_VehicleMessage* next_vehicle_message();
void insert_new_vehicle_message(openxc_VehicleMessage *v_msg);