summaryrefslogtreecommitdiffstats
path: root/low-can-binding/binding/low-can-hat.cpp
diff options
context:
space:
mode:
authorYuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com>2017-09-01 20:10:00 +0900
committerRomain Forlot <romain.forlot@iot.bzh>2017-09-01 13:10:27 +0000
commit05d31a77fb2742d4aedd26a13454b21b5df83b20 (patch)
tree404ce0622add622501ca429bb0ddc9a2b0a7c9fc /low-can-binding/binding/low-can-hat.cpp
parente1d2eb87248861b63f1c0a90398b6e71338571e3 (diff)
Add get() and list() API
This patch is porting AMB get() and list() API. Change-Id: Ic1d391219f1d64ab127bc1977a5b198abe0fc94b Signed-off-by: Yuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com>
Diffstat (limited to 'low-can-binding/binding/low-can-hat.cpp')
-rw-r--r--low-can-binding/binding/low-can-hat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/low-can-binding/binding/low-can-hat.cpp b/low-can-binding/binding/low-can-hat.cpp
index ae16f5d0..2b5baa36 100644
--- a/low-can-binding/binding/low-can-hat.cpp
+++ b/low-can-binding/binding/low-can-hat.cpp
@@ -57,6 +57,8 @@ extern "C"
{ .verb= "subscribe", .callback= subscribe, .auth= NULL, .info="Let subscribe to signals", .session= AFB_SESSION_NONE},
{ .verb= "unsubscribe", .callback= unsubscribe, .auth= NULL, .info="Let unsubscribe signals", .session= AFB_SESSION_NONE},
{ .verb= "write", .callback= write, .auth= &afb_auth_loa_1, .info="Write a single CAN message on a CAN bus", .session= AFB_SESSION_LOA_1},
+ { .verb= "get", .callback= get, .auth=NULL, .info="get a current value of CAN message", .session= AFB_SESSION_NONE},
+ { .verb= "list",.callback= list, .auth=NULL, .info="get a supported CAN message list", .session= AFB_SESSION_NONE},
{ .verb= NULL, .callback= NULL, .auth= NULL, .info=NULL, .session= 0}
};