xheep_gen.peripherals.user_peripherals.PDM2PCM module
- class xheep_gen.peripherals.user_peripherals.PDM2PCM.PDM2PCM(address: int | None = None, length: int | None = None, cic_only: bool = True)
Bases:
UserPeripheralPulse-density modulation to pulse-code modulation converter.
- Parameters:
cic_only (bool) – True to enable CIC only mode, False to enable other modes. By default, CIC only mode is enabled.
- get_cic_mode()
Get the CIC mode of the PDM2PCM peripheral.
- Returns:
True if CIC only mode is enabled, False otherwise.