40 lines
997 B
C
Executable File
40 lines
997 B
C
Executable File
/**
|
|
* @file include/di/can/zkl/structures.h
|
|
* @brief brief
|
|
* @date Sep 2, 2015
|
|
* @author rheijden
|
|
* @copyright 2015 Dual Inventive Technology Centre B.V.
|
|
*
|
|
* descr
|
|
*/
|
|
#ifndef LIBDI_INCLUDE_DI_CAN_ZKL_STRUCTURES_H_
|
|
#define LIBDI_INCLUDE_DI_CAN_ZKL_STRUCTURES_H_
|
|
|
|
#include <stdbool.h>
|
|
|
|
#define DI_CAN_ZKL_SECTION_NROF_SECTIONS 4
|
|
|
|
/** ZKL switch section
|
|
* @note Also used as index for section control, do not change
|
|
*/
|
|
enum di_can_zkl_section {
|
|
DI_CAN_ZKL_SECTION_1 = 0,
|
|
DI_CAN_ZKL_SECTION_2 = 1,
|
|
DI_CAN_ZKL_SECTION_3 = 2,
|
|
DI_CAN_ZKL_SECTION_4 = 3,
|
|
DI_CAN_ZKL_SECTION_ALL = 0xff,
|
|
};
|
|
|
|
/**
|
|
* ZKL switch (battery) section state
|
|
*/
|
|
struct di_can_zkl_switch_section_state {
|
|
bool state; /**< Overal section state */
|
|
bool section_1; /**< Section 1 (battery) state */
|
|
bool section_2; /**< Section 2 (battery) state */
|
|
bool section_3; /**< Section 3 (battery) state */
|
|
bool section_4; /**< Section 4 (battery) state */
|
|
};
|
|
|
|
#endif /* LIBDI_INCLUDE_DI_CAN_ZKL_STRUCTURES_H_ */
|