MCPcopy Create free account
hub / github.com/CANopenNode/CANopenNode / CO_LEDs_init

Function CO_LEDs_init

303/CO_LEDs.c:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#if ((CO_CONFIG_LEDS)&CO_CONFIG_LEDS_ENABLE) != 0
24
25CO_ReturnError_t
26CO_LEDs_init(CO_LEDs_t* LEDs) {
27 CO_ReturnError_t ret = CO_ERROR_NO;
28
29 /* verify arguments */
30 if (LEDs == NULL) {
31 return CO_ERROR_ILLEGAL_ARGUMENT;
32 }
33
34 /* clear the object */
35 (void)memset(LEDs, 0, sizeof(CO_LEDs_t));
36
37 return ret;
38}
39
40void
41CO_LEDs_process(CO_LEDs_t* LEDs, uint32_t timeDifference_us, CO_NMT_internalState_t NMTstate, bool_t LSSconfig,

Callers 1

CO_CANopenInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected