aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding/binding/low-can-hat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'low-can-binding/binding/low-can-hat.cpp')
-rw-r--r--low-can-binding/binding/low-can-hat.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/low-can-binding/binding/low-can-hat.cpp b/low-can-binding/binding/low-can-hat.cpp
index 7113b69a..6709089e 100644
--- a/low-can-binding/binding/low-can-hat.cpp
+++ b/low-can-binding/binding/low-can-hat.cpp
@@ -34,14 +34,15 @@ extern "C"
static const struct afb_verb_v2 verbs[]=
{
- { .verb= "subscribe", .callback= subscribe, .auth= NULL, .session= AFB_SESSION_NONE},
- { .verb= "unsubscribe", .callback= unsubscribe, .auth= NULL, .session= AFB_SESSION_NONE},
- { .verb= NULL, .callback= NULL, .auth= NULL, .session= 0}
+ { .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= NULL, .callback= NULL, .auth= NULL, .info=NULL, .session= 0}
};
const struct afb_binding_v2 afbBindingV2 {
.api = "low-can",
.specification = NULL,
+ .info = "API to Low level CAN service, read and decode the bus",
.verbs = verbs,
.preinit = NULL,
.init = initv2,
@@ -67,7 +68,7 @@ extern "C"
if(application_t::instance().get_diagnostic_manager().initialize())
return 0;
- ERROR("There was something wrong with CAN device Initialization.");
+ AFB_ERROR("There was something wrong with CAN device Initialization.");
return 1;
}
};