redpitaya

class tam.ChannelCapabilities(adcdma_channel: int, adc_attenuation: Capability, fe_attenuation: Capability, freq: Capability, cal_freq: Capability, min_span: float, reflevel: Capability, chan_type: int = 0, bandwidth: float = 0.0, adc_centre_freq: float | None = None)[source]

Holds information relating to the capabilities of a Red Pitaya ADC channel. This information includes the following:

Parameters:
  • adcdma_channel (int) – The associated ADC DMA channel in the Red Pitaya PL hardware.

  • adc_attenuation (Capability) – Describes the capability of the ADC attenuator in the base band rfblocks Red Pitaya ADC hardware.

  • fe_attenuation (Capability) – Describes the capability of the ADC attenuator in the RF front end associated with the rfblocks Red Pitaya ADC hardware. Note that this will set to None if there is no actual attenuator.

  • freq (Capability) – Describes the frequency range of the associated channel.

  • cal_freq (Capability) – Describes the fequency range to be used when calibrating the associated channel.

  • min_span (float) – The minimum span for the associated channel.

  • reflevel (Capability) – Describes the reference level range for the channel

  • chan_type (int) – Specifies the type of the associated channel. This can be one of the following: DIRECT, SINGLE, SUPERHET. These correspond to base band (i.e. no RF front end), direct down conversion RF front end, super heterodyne down conversion RF front end.

  • bandwidth (float) – The bandwidth of the channel in MHz. For example, the bandwidth of a DIRECT channel will be RP_ADC_MAX_FREQUENCY - RP_ADC_MIN_FREQUENCY

class tam.Capability(min: float, max: float, step: float)[source]

Holds information relating to the capability of a Red Pitaya channel parameter. This information may include one or more of the following attributes:

Parameters:
  • min (float) – The minimum value for the parameter

  • max (float) – The maximum value for the parameter

  • step (float) – The amount that a given parameter may be incremented or decremented by.

Examples of parameters would be attenuation, frequency, and reference level.