/**
 * @file	   od_entries.h
 *
 * @copyright  Nehemis SARL reserves all rights even in the event of industrial
 *             property rights. We reserve all rights of disposal such as
 *             copying and passing on to third parties.
 *
 * @brief	   Header file for OEM register set.
 *
 */

#ifndef OD_ENTRIES_H_
#define OD_ENTRIES_H_

/* Device Indexes */
#define OD_ENTRY_PU_MOTOR_CTRL_INDEX					0x6000
#define OD_ENTRY_PU_COND_DATA_IN_INDEX					0x6001
#define OD_ENTRY_PU_COND_DATA_OUT_INDEX					0x6002
#define OD_ENTRY_PU_MOTOR_DATA_OUT_INDEX				0x6003
#define OD_ENTRY_PU_FLOWMETER_DATA_OUT_INDEX			0x2000
#define OD_ENTRY_PU_PRESSURE_DATA_OUT_INDEX				0x2001
#define OD_ENTRY_PU_GRUNDFOS_PUMP_CONTROL_INDEX			0x2003

/* Device Sub-indexes */
#define OD_ENTRY_PU_MOTOR_CTRL_ID_SUB_INDEX				0x01
#define OD_ENTRY_PU_MOTOR_CTRL_CMD_SUB_INDEX			0x02
#define OD_ENTRY_PU_MOTOR_CTRL_POS_SUB_INDEX			0x03
#define OD_ENTRY_PU_MOTOR_CTRL_PRESSURE_SUB_INDEX		0x04
#define OD_ENTRY_PU_MOTOR_CTRL_FLOW_SUB_INDEX			0x05

#define OD_ENTRY_PU_COND1_DATA_IN_SUB_INDEX				0x01
#define OD_ENTRY_PU_COND2_DATA_IN_SUB_INDEX				0x03
#define OD_ENTRY_PU_COND3_DATA_IN_SUB_INDEX				0x05

#define OD_ENTRY_PU_TEMP1_DATA_IN_SUB_INDEX				0x02
#define OD_ENTRY_PU_TEMP2_DATA_IN_SUB_INDEX				0x04
#define OD_ENTRY_PU_TEMP3_DATA_IN_SUB_INDEX				0x06

#define OD_ENTRY_PU_COND1_DATA_OUT_SUB_INDEX			0x01
#define OD_ENTRY_PU_COND2_DATA_OUT_SUB_INDEX			0x03
#define OD_ENTRY_PU_COND3_DATA_OUT_SUB_INDEX			0x05

#define OD_ENTRY_PU_TEMP1_DATA_OUT_SUB_INDEX			0x02
#define OD_ENTRY_PU_TEMP2_DATA_OUT_SUB_INDEX			0x04
#define OD_ENTRY_PU_TEMP3_DATA_OUT_SUB_INDEX			0x06

#define OD_ENTRY_PU_FLOWMETER1_DATA_OUT_SUB_INDEX		0x01
#define OD_ENTRY_PU_FLOWMETER2_DATA_OUT_SUB_INDEX		0x02
#define OD_ENTRY_PU_FLOWMETER3_DATA_OUT_SUB_INDEX		0x03
#define OD_ENTRY_PU_FLOWMETER4_DATA_OUT_SUB_INDEX		0x04

#define OD_ENTRY_PU_PRESSURE1_DATA_OUT_SUB_INDEX		0x01
#define OD_ENTRY_PU_PRESSURE2_DATA_OUT_SUB_INDEX		0x02
#define OD_ENTRY_PU_PRESSURE3_DATA_OUT_SUB_INDEX		0x03
#define OD_ENTRY_PU_PRESSURE4_DATA_OUT_SUB_INDEX		0x04

#define OD_ENTRY_PU_GRUNDFOS_PUMP_ENABLE_SUB_INDEX		0x01
#define OD_ENTRY_PU_GRUNDFOS_PUMP_SET_SPEED_SUB_INDEX	0x02
#define OD_ENTRY_PU_GRUNDFOS_PUMP_FEEDBACK_SUB_INDEX	0x00

#endif /* OD_ENTRIES_H_ */
