PGA外设

  1. static inline void PGA_enable(uint32_t base)
  2. 函数功能:根据传入的参数来启用PGA模块。
  3. 参数说明:

    • 输入参数:
      • base:PGA模块基地址
    • 返回参数:
  4. static inline void PGA_disable(uint32_t base)

  5. 函数功能:根据传入的参数来关闭PGA模块。
  6. 参数说明:

    • 输入参数:
      • base:PGA模块基地址
    • 返回参数:
  7. static inline void PGA_setGain(uint32_t base, PGA_GainValue gainValue)

  8. 函数功能:设置PGA模块中gain的值
  9. 参数说明:

    • 输入参数:
      • base:PGA模块基地址
      • gain:PGA模块中gain的值
    • 返回参数:
  10. static inline void PGA_setFilterResistor(uint32_t base, PGA_LowPassResistorValue resistorValue)

  11. 函数功能:设置PGA 输出低通 RC 滤波器的电阻值
  12. 参数说明:

    • 输入参数:
      • base:PGA模块基地址
      • resistorValue:电阻值
    • 返回参数:
  13. static inline uint16_t PGA_getPGARevision(uint32_t base)

  14. 函数功能:获得PGA 版本号
  15. 参数说明:

    • 输入参数:
      • base:PGA模块基地址
    • 返回参数:
      • uint16_t:PGA版本号
  16. static inline uint16_t PGA_getPGAType(uint32_t base)

  17. 函数功能:获得PGA类型
  18. 参数说明:

    • 输入参数:
      • base:PGA模块基地址
    • 返回参数:
      • uint16_t:PGA类型
  19. static inline void PGA_lockRegisters(uint32_t base, uint16_t registerType)

  20. 函数功能:将PGA寄存器锁住,无法更改其内容
  21. 参数说明:
    • 输入参数:
      • base:PGA模块基地址
      • registerType:要锁住的寄存器类型
    • 返回参数: