PGA外设
static inline void PGA_enable(uint32_t base)
- function function: enable the PGA module according to the parameters passed in.
-
parameter description:
- input parameters:
- base: base address of PGA module
- return parameters:
- none
- input parameters:
-
static inline void PGA_disable(uint32_t base)
- function function: close the PGA module according to the input parameters.
-
parameter description:
- input parameters:
- base: base address of PGA module
- return parameters:
- none
- input parameters:
-
static inline void PGA_setGain(uint32_t base, PGA_GainValue gainValue)
- function: Set the value of gain in the PGA module
-
parameter description:
- input parameters:
- base: base address of PGA module
- gain: The value of gain in the PGA module
- return parameters:
- none
- input parameters:
-
static inline void PGA_setFilterResistor(uint32_t base, PGA_LowPassResistorValue resistorValue)
- function: Set the resistance value of the PGA output low-pass RC filter
-
parameter description:
- input parameters:
- base: base address of PGA module
- resistorValue: Resistance value
- return parameters:
- none
- input parameters:
-
static inline uint16_t PGA_getPGARevision(uint32_t base)
- function: Obtain PGA version number
-
parameter description:
- input parameters:
- base: base address of PGA module
- return parameters:
- uint16 _ t: PGA version number
- input parameters:
-
static inline uint16_t PGA_getPGAType(uint32_t base)
- function function: get PGA type
-
parameter description:
- input parameters:
- base: base address of PGA module
- return parameters:
- uint16 _ t: PGA type
- input parameters:
-
static inline void PGA_lockRegisters(uint32_t base, uint16_t registerType)
- function function: The PGA register is locked and its content cannot be changed.
- parameter description:
- input parameters:
- base: base address of PGA module
- registerType: The type of register to be locked
- return parameters:
- none
- input parameters: