3.1.8.2.12. waf_tools.bms_config_generate.set_bms_slave

waf_tools.bms_config_generate.set_bms_slave(bld: BuildContext, system: System) → list[dict]

Configure BMS-Slave defines and environment variables.

Emits defines for the analog front-end manufacturer, IC, and driver type. Populates environment variables for the AFE (FOXBMS_BMS_SLAVE_AFE_MANUFACTURER, FOXBMS_BMS_SLAVE_AFE_IC) and the temperature sensor (manufacturer, model, method).

Parameters:
  • bld – The active waf build context.

  • system – The validated system configuration.

Returns:

A list of define dictionaries for header generation.