PGA外设
static inline void PGA_enable(uint32_t base)
- 函数功能:根据传入的参数来启用PGA模块。
-
参数说明:
- 输入参数:
- base:PGA模块基地址
- 返回参数:
- 无
- 输入参数:
-
static inline void PGA_disable(uint32_t base)
- 函数功能:根据传入的参数来关闭PGA模块。
-
参数说明:
- 输入参数:
- base:PGA模块基地址
- 返回参数:
- 无
- 输入参数:
-
static inline void PGA_setGain(uint32_t base, PGA_GainValue gainValue)
- 函数功能:设置PGA模块中gain的值
-
参数说明:
- 输入参数:
- base:PGA模块基地址
- gain:PGA模块中gain的值
- 返回参数:
- 无
- 输入参数:
-
static inline void PGA_setFilterResistor(uint32_t base, PGA_LowPassResistorValue resistorValue)
- 函数功能:设置PGA 输出低通 RC 滤波器的电阻值
-
参数说明:
- 输入参数:
- base:PGA模块基地址
- resistorValue:电阻值
- 返回参数:
- 无
- 输入参数:
-
static inline uint16_t PGA_getPGARevision(uint32_t base)
- 函数功能:获得PGA 版本号
-
参数说明:
- 输入参数:
- base:PGA模块基地址
- 返回参数:
- uint16_t:PGA版本号
- 输入参数:
-
static inline uint16_t PGA_getPGAType(uint32_t base)
- 函数功能:获得PGA类型
-
参数说明:
- 输入参数:
- base:PGA模块基地址
- 返回参数:
- uint16_t:PGA类型
- 输入参数:
-
static inline void PGA_lockRegisters(uint32_t base, uint16_t registerType)
- 函数功能:将PGA寄存器锁住,无法更改其内容
- 参数说明:
- 输入参数:
- base:PGA模块基地址
- registerType:要锁住的寄存器类型
- 返回参数:
- 无
- 输入参数: