More than four analogX on a single CAN bus
Posted: Thu May 02, 2019 7:26 pm
Looking at the wiki I see the base address and offset configuration that allows 4 analogX modules on a single CAN bus.
Skimming through code on github I see
Are there limitations that would prevent loading a revised firmware to analogX, with different base address or offset, values so that more than 4 modules could be on the same CAN bus?
Skimming through code on github I see
Code: Select all
// CANFilter shiftx2_can_filter = {1, 0, 1, 0, 0x000E3700, 0x1FFFFF00}; // g_can_base_address, ANALOGX_CAN_FILTER_MASK
.
.
.
offset |= palReadPad(GPIOA, ADR1_ADDRESS_PORT) == PAL_HIGH ? 0x01 : 0x00;
offset |= palReadPad(GPIOA, ADR2_ADDRESS_PORT) == PAL_HIGH ? 0x02 : 0x00;