module documentation

DCC Block Current Detection

This module contains the functions and classes for DCC block detection based on current load monitoring. This is for the resistor based detector where the ADC is on the track side of the galvanic isolation and uses a TI ADC1015 ADC rather than the Pico's own ADC.

Author
Paul Redhead
Class DCCBlkDet DCC (block current) Detector
Constant _ADC_CONF0 Undocumented
Constant _ADC_CONF0C Undocumented
Constant _ADC_CONF1 Undocumented
Constant _ADC_CONF1C Undocumented
Constant _ADC_CONF_ADD Undocumented
Constant _FILTER_FACTOR Undocumented
Constant _FILTER_RATIO Undocumented
Constant _L_THRESHOLD Undocumented
Constant _TIMER_PERIOD Undocumented
Constant _U_LIMIT Undocumented
Constant _U_THRESHOLD Undocumented
Constant _Z_FILTER_FACTOR Undocumented
Constant _Z_FILTER_RATIO Undocumented
Variable _adc_addr Undocumented
Variable _i2c Undocumented
_ADC_CONF0: bytes =

Undocumented

Value
b'\x95\xe3'
_ADC_CONF0C: bytes =

Undocumented

Value
b'\x14\xe3'
_ADC_CONF1: bytes =

Undocumented

Value
b'\xa5\xe3'
_ADC_CONF1C: bytes =

Undocumented

Value
b'$\xe3'
_ADC_CONF_ADD =

Undocumented

Value
const(1)
_FILTER_FACTOR =

Undocumented

Value
const(5)
_FILTER_RATIO =

Undocumented

Value
const(((_FILTER_FACTOR - 1) / _FILTER_FACTOR))
_L_THRESHOLD =

Undocumented

Value
const(75)
_TIMER_PERIOD =

Undocumented

Value
const(50)
_U_LIMIT =

Undocumented

Value
const((_U_THRESHOLD * 3 // 2))
_U_THRESHOLD =

Undocumented

Value
const(150)
_Z_FILTER_FACTOR =

Undocumented

Value
const(100)
_Z_FILTER_RATIO =

Undocumented

Value
const(((_Z_FILTER_FACTOR - 1) / _Z_FILTER_FACTOR))
_adc_addr =

Undocumented

_i2c =

Undocumented