foxBMS  1.3.0
The foxBMS Battery Management System API Documentation
Bitmasks for register access of MAX1785x

Macros

#define MXM_BM_NULL   ((MXM_REG_BM)0x00u)
 Monitoring Register Null byte. More...
 
#define MXM_BM_LSB   ((MXM_REG_BM)MXM_REG_BIT_DEFN(0u, 7u))
 Monitoring Register LSB. More...
 
#define MXM_BM_MSB   ((MXM_REG_BM)MXM_REG_BIT_DEFN(8u, 15u))
 Monitoring Register MSB. More...
 
#define MXM_BM_WHOLE_REG   ((MXM_REG_BM)0xFFFFu)
 All bits of monitoring register. More...
 
#define MXM_REG_VERSION_MOD   ((MXM_REG_BM)MXM_REG_BIT_DEFN(4u, 15u))
 Monitoring Register Version/Model. More...
 
#define MXM_REG_VERSION_VER   ((MXM_REG_BM)MXM_REG_BIT_DEFN(0u, 3u))
 Monitoring Register Version/Silicon Version. More...
 
#define MXM_REG_ADC_14BIT_VALUE   ((MXM_REG_BM)MXM_REG_BIT_DEFN(2u, 15u))
 Monitoring Register 14bit ADC value. More...
 
#define MXM_REG_STATUS1_ALRTRST   ((MXM_REG_BM)((MXM_REG_BM)(1u) << (14u)))
 ALRTRST bit in STATUS1. More...
 
#define MXM_REG_STATUS1_ALRTINTRFC   ((MXM_REG_BM)((1u) << (4u)))
 ALRTINTRFC bit in STATUS1. More...
 

Detailed Description

Macro Definition Documentation

◆ MXM_BM_LSB

#define MXM_BM_LSB   ((MXM_REG_BM)MXM_REG_BIT_DEFN(0u, 7u))

Monitoring Register LSB.

Definition at line 716 of file mxm_register_map.h.

◆ MXM_BM_MSB

#define MXM_BM_MSB   ((MXM_REG_BM)MXM_REG_BIT_DEFN(8u, 15u))

Monitoring Register MSB.

Definition at line 720 of file mxm_register_map.h.

◆ MXM_BM_NULL

#define MXM_BM_NULL   ((MXM_REG_BM)0x00u)

Monitoring Register Null byte.

Definition at line 712 of file mxm_register_map.h.

◆ MXM_BM_WHOLE_REG

#define MXM_BM_WHOLE_REG   ((MXM_REG_BM)0xFFFFu)

All bits of monitoring register.

Definition at line 724 of file mxm_register_map.h.

◆ MXM_REG_ADC_14BIT_VALUE

#define MXM_REG_ADC_14BIT_VALUE   ((MXM_REG_BM)MXM_REG_BIT_DEFN(2u, 15u))

Monitoring Register 14bit ADC value.

Definition at line 736 of file mxm_register_map.h.

◆ MXM_REG_STATUS1_ALRTINTRFC

#define MXM_REG_STATUS1_ALRTINTRFC   ((MXM_REG_BM)((1u) << (4u)))

ALRTINTRFC bit in STATUS1.

Definition at line 744 of file mxm_register_map.h.

◆ MXM_REG_STATUS1_ALRTRST

#define MXM_REG_STATUS1_ALRTRST   ((MXM_REG_BM)((MXM_REG_BM)(1u) << (14u)))

ALRTRST bit in STATUS1.

Definition at line 740 of file mxm_register_map.h.

◆ MXM_REG_VERSION_MOD

#define MXM_REG_VERSION_MOD   ((MXM_REG_BM)MXM_REG_BIT_DEFN(4u, 15u))

Monitoring Register Version/Model.

Definition at line 728 of file mxm_register_map.h.

◆ MXM_REG_VERSION_VER

#define MXM_REG_VERSION_VER   ((MXM_REG_BM)MXM_REG_BIT_DEFN(0u, 3u))

Monitoring Register Version/Silicon Version.

Definition at line 732 of file mxm_register_map.h.