Lines Matching refs:canopen_leds
21 static struct canopen_leds_state canopen_leds; variable
30 CO_NMT_blinkingProcess50ms(canopen_leds.nmt); in canopen_leds_update()
32 if (canopen_leds.program_download) { in canopen_leds_update()
33 green = LED_TRIPLE_FLASH(canopen_leds.nmt); in canopen_leds_update()
35 green = LED_GREEN_RUN(canopen_leds.nmt); in canopen_leds_update()
38 red = LED_RED_ERROR(canopen_leds.nmt); in canopen_leds_update()
41 if (red && canopen_leds.red_cb) { in canopen_leds_update()
46 if (canopen_leds.green_cb) { in canopen_leds_update()
47 if (green != canopen_leds.green) { in canopen_leds_update()
48 canopen_leds.green_cb(green, canopen_leds.green_arg); in canopen_leds_update()
49 canopen_leds.green = green; in canopen_leds_update()
53 if (canopen_leds.red_cb) { in canopen_leds_update()
54 if (red != canopen_leds.red) { in canopen_leds_update()
55 canopen_leds.red_cb(red, canopen_leds.red_arg); in canopen_leds_update()
56 canopen_leds.red = red; in canopen_leds_update()
69 canopen_leds.nmt = nmt; in canopen_leds_init()
72 if (canopen_leds.green_cb) { in canopen_leds_init()
73 canopen_leds.green_cb(false, canopen_leds.green_arg); in canopen_leds_init()
75 if (canopen_leds.red_cb) { in canopen_leds_init()
76 canopen_leds.red_cb(false, canopen_leds.red_arg); in canopen_leds_init()
79 canopen_leds.green_cb = green_cb; in canopen_leds_init()
80 canopen_leds.green_arg = green_arg; in canopen_leds_init()
81 canopen_leds.green = false; in canopen_leds_init()
82 canopen_leds.red_cb = red_cb; in canopen_leds_init()
83 canopen_leds.red_arg = red_arg; in canopen_leds_init()
84 canopen_leds.red = false; in canopen_leds_init()
87 if (canopen_leds.green_cb) { in canopen_leds_init()
88 canopen_leds.green_cb(false, canopen_leds.green_arg); in canopen_leds_init()
90 if (canopen_leds.red_cb) { in canopen_leds_init()
91 canopen_leds.red_cb(false, canopen_leds.red_arg); in canopen_leds_init()
101 canopen_leds.program_download = in_progress; in canopen_leds_program_download()