CANopenNode
CANopen protocol stack
Loading...
Searching...
No Matches
CO_LEDs.h File Reference

CANopen Indicator specification (CiA 303-3 v1.4.0) More...

+ Include dependency graph for CO_LEDs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CO_LEDs_t
 LEDs object, initialized by CO_LEDs_init() More...
 

Macros

#define CO_LED_flicker   0x01U
 LED flickering 10Hz.
 
#define CO_LED_blink   0x02U
 LED blinking 2,5Hz.
 
#define CO_LED_flash_1   0x04U
 LED single flash.
 
#define CO_LED_flash_2   0x08U
 LED double flash.
 
#define CO_LED_flash_3   0x10U
 LED triple flash.
 
#define CO_LED_flash_4   0x20U
 LED quadruple flash.
 
#define CO_LED_CANopen   0x80U
 LED CANopen according to CiA 303-3.
 
#define CO_LED_RED(LEDs, BITMASK)   ((((LEDs)->LEDred & BITMASK) != 0U) ? 1U : 0U)
 Get on/off state for red led for one of the CO_LED bitmasks.
 
#define CO_LED_GREEN(LEDs, BITMASK)   ((((LEDs)->LEDgreen & BITMASK) != 0U) ? 1U : 0U)
 Get on/off state for green led for one of the CO_LED bitmasks.
 

Functions

CO_ReturnError_t CO_LEDs_init (CO_LEDs_t *LEDs)
 Initialize LEDs object.
 
void CO_LEDs_process (CO_LEDs_t *LEDs, uint32_t timeDifference_us, CO_NMT_internalState_t NMTstate, bool_t LSSconfig, bool_t ErrCANbusOff, bool_t ErrCANbusWarn, bool_t ErrRpdo, bool_t ErrSync, bool_t ErrHbCons, bool_t ErrOther, bool_t firmwareDownload, uint32_t *timerNext_us)
 Process indicator states.
 

Detailed Description

CANopen Indicator specification (CiA 303-3 v1.4.0)

Author
Janez Paternoster

This file is part of https://github.com/CANopenNode/CANopenNode, a CANopen Stack.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.