42 lines
1.4 KiB
C
42 lines
1.4 KiB
C
/**
|
|
* @file grundfos.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
|
|
*
|
|
*/
|
|
|
|
#ifndef GRUNDFOS_H_
|
|
#define GRUNDFOS_H_
|
|
/******************************************************************************
|
|
* Include Header Files
|
|
******************************************************************************/
|
|
#include "nms_types.h"
|
|
#include <stdlib.h>
|
|
#include "adc.h"
|
|
#include "stdbool.h"
|
|
/******************************************************************************
|
|
* Type declarations
|
|
******************************************************************************/
|
|
typedef struct
|
|
{
|
|
uint32 channel_u32;
|
|
float32 rawQ_f32;
|
|
} GrundfosMain_st; /* Grundfos structure definition */
|
|
|
|
/******************************************************************************
|
|
* Macro Constant Declarations
|
|
******************************************************************************/
|
|
|
|
/******************************************************************************
|
|
* Extern Function Declarations
|
|
******************************************************************************/
|
|
void GrundfosPmpInit(GrundfosMain_st *grundfos_pst);
|
|
void GrundfosPmpFeedback(GrundfosMain_st *grundfos_pst);
|
|
void GrundfosPmpEnable(uint8_t state_u8);
|
|
bool GrundfosPmpSetSpeed(float setSpeed_f);
|
|
#endif /* GRUNDFOS_H_ */
|