PGA外设

  1. static inline void PGA_enable(uint32_t base)
  2. function function: enable the PGA module according to the parameters passed in.
  3. parameter description:

    • input parameters:
      • base: base address of PGA module
    • return parameters:
      • none
  4. static inline void PGA_disable(uint32_t base)

  5. function function: close the PGA module according to the input parameters.
  6. parameter description:

    • input parameters:
      • base: base address of PGA module
    • return parameters:
      • none
  7. static inline void PGA_setGain(uint32_t base, PGA_GainValue gainValue)

  8. function: Set the value of gain in the PGA module
  9. parameter description:

    • input parameters:
      • base: base address of PGA module
      • gain: The value of gain in the PGA module
    • return parameters:
      • none
  10. static inline void PGA_setFilterResistor(uint32_t base, PGA_LowPassResistorValue resistorValue)

  11. function: Set the resistance value of the PGA output low-pass RC filter
  12. parameter description:

    • input parameters:
      • base: base address of PGA module
      • resistorValue: Resistance value
    • return parameters:
      • none
  13. static inline uint16_t PGA_getPGARevision(uint32_t base)

  14. function: Obtain PGA version number
  15. parameter description:

    • input parameters:
      • base: base address of PGA module
    • return parameters:
      • uint16 _ t: PGA version number
  16. static inline uint16_t PGA_getPGAType(uint32_t base)

  17. function function: get PGA type
  18. parameter description:

    • input parameters:
      • base: base address of PGA module
    • return parameters:
      • uint16 _ t: PGA type
  19. static inline void PGA_lockRegisters(uint32_t base, uint16_t registerType)

  20. function function: The PGA register is locked and its content cannot be changed.
  21. parameter description:
    • input parameters:
      • base: base address of PGA module
      • registerType: The type of register to be locked
    • return parameters:
      • none