add labview
This commit is contained in:
@@ -47,12 +47,13 @@
|
||||
|
||||
typedef struct //MB_DataInRegsTypeDef
|
||||
{
|
||||
uint16_t sens_Temp[MAX_SENSE];
|
||||
uint16_t UzptPLUS;
|
||||
uint16_t UzptMINUS;
|
||||
uint16_t UzptPLUS_MIN;
|
||||
uint16_t sens_Temp[MAX_SENSE];
|
||||
|
||||
|
||||
uint16_t set_Temp[MAX_SENSE];
|
||||
|
||||
|
||||
}MB_DataInRegsTypeDef;
|
||||
|
||||
@@ -62,7 +63,7 @@ typedef struct //MB_DataInRegsTypeDef
|
||||
*/
|
||||
typedef struct //MB_DataInRegsTypeDef
|
||||
{
|
||||
|
||||
uint16_t set_Temp[MAX_SENSE];
|
||||
}MB_DataHoldRegsTypeDef;
|
||||
|
||||
|
||||
@@ -107,9 +108,38 @@ typedef struct //MB_DataInRegsTypeDef
|
||||
* @brief Коилы
|
||||
* @details Желательно с помощью reserved делать стркутуру кратной 16-битам
|
||||
*/
|
||||
typedef union
|
||||
{
|
||||
struct {
|
||||
unsigned state_val_01:1;
|
||||
unsigned state_val_02:1;
|
||||
unsigned state_val_03:1;
|
||||
unsigned state_val_04:1;
|
||||
unsigned state_val_05:1;
|
||||
unsigned state_val_06:1;
|
||||
unsigned state_val_07:1;
|
||||
unsigned state_val_08:1;
|
||||
unsigned state_val_09:1;
|
||||
unsigned state_val_10:1;
|
||||
unsigned state_val_11:1;
|
||||
unsigned state_val_12:1;
|
||||
unsigned state_val_13:1;
|
||||
unsigned state_val_14:1;
|
||||
unsigned state_val_15:1;
|
||||
unsigned state_val_16:1;
|
||||
} state_val_bit;
|
||||
uint16_t all;
|
||||
|
||||
|
||||
}word;
|
||||
typedef struct //MB_DataCoilsTypeDef
|
||||
{
|
||||
unsigned reserved:16;
|
||||
|
||||
|
||||
word coils;
|
||||
unsigned init_param:1;
|
||||
unsigned reserved:15;
|
||||
|
||||
}MB_DataCoilsTypeDef;
|
||||
|
||||
// DEFINES FOR COIL ARRAYS
|
||||
|
||||
Reference in New Issue
Block a user