...
I2C1_SDA
: port and pin for the MCP3427 devices. For voltage sense MCP3427, use pin 11. For current sense, use pin 9.MCP3427s, defaultGPIO_PORT_B
and pin11
I2C1_SCL
: port and pin for the MCP3427 devices. For voltage sense MCP3427, use pin 10. For current sense, use pin 8.I2C_PORT
: Configured to I2C_PORT_1 by default (reference to the schematic)SMOKE_MAX_CONSECUTIVE_FAULTS
: Max number of consecutive faults before issuing a warningSMOKE_MCP3427s, default
GPIO_PORT_B
and pin10
I2C2_SDA
: port and pin for the current sense MCP3427s, defaultGPIO_PORT_B
and pin9
I2C2_SCL
: port and pin for the current sense MCP3427s, defaultGPIO_PORT_B
and pin8
SMOKE_SAMPLE_RATE
: Number if bits of the converted values. Seemcp_3427_adc.h
or the datasheet for more details.SMOKE_AMP_GAIN
: The factor by which the MCP3427 should amplify the input voltage before converting. Seemcp_3427_adc.h
or the datasheet for more details.SMOKE_CONVERSION_MODE
: One-shot mode or continuous mode. Seemcp_3427_adc.h
or the datasheet for more details.s_test_devices
: Hold the indices (or ID) which MCP3427 to be tested. For testing voltage sense MCP3427MCP3427s, MUST use indices 0 to 5. For testing current sense MCP3427, MUST use index 6. Note: Cannot test both voltage sense and current sense MCP3427s at the same time.