src.dualinventive.com/dinet/sec-multi-proxy/libdi/include/di/can/raw/structures.h

44 lines
1.3 KiB
C

/**
* @file include/di/can/raw/structures.h
* @brief brief
* @date Sep 2, 2015
* @author rheijden
* @copyright 2015 Dual Inventive Technology Centre B.V.
*
* descr
*/
#ifndef LIBDI_INCLUDE_DI_CAN_RAW_STRUCTURES_H_
#define LIBDI_INCLUDE_DI_CAN_RAW_STRUCTURES_H_
/** TCP (DI-Net RPC) connection state */
enum di_can_raw_connection_state {
DI_CAN_RAW_CONNECTION_STATE_UNKNOWN = 0,
DI_CAN_RAW_CONNECTION_STATE_CONNECTING = 1,
DI_CAN_RAW_CONNECTION_STATE_CONNECTED = 2,
DI_CAN_RAW_CONNECTION_STATE_DISCONNECTING = 3,
DI_CAN_RAW_CONNECTION_STATE_DISCONNECTED = 4
};
/** Device cloudlight state
* @note Keep in sync with di_fw_cloudlight_state
*/
enum di_can_raw_cloudlight_state {
DI_CAN_RAW_CLOUDLIGHT_STATE_ONLINE = 0,
DI_CAN_RAW_CLOUDLIGHT_STATE_ONLINE_ERROR = 1,
DI_CAN_RAW_CLOUDLIGHT_STATE_OFFLINE = 2,
DI_CAN_RAW_CLOUDLIGHT_STATE_OFFLINE_ERROR = 3,
DI_CAN_RAW_CLOUDLIGHT_STATE_POWERSAVE = 4,
DI_CAN_RAW_CLOUDLIGHT_STATE_BUTTON = 5,
DI_CAN_RAW_CLOUDLIGHT_STATE_SPECIAL = 6
};
/**
* DNCM communication status reporting
*/
struct di_can_raw_dncm_communication_status {
bool on_change; /**< On change status reporting */
uint16_t interval_sec; /**< Periodic status reporting interval (seconds) */
};
#endif /* LIBDI_INCLUDE_DI_CAN_RAW_STRUCTURES_H_ */