def Main(argv): """Entry point.""" flags = generate_monitor_base.ParseFlags(argv) config_module = generate_monitor_base.GetConfigModule(flags) gen = generate_monitor_base.GenerateMonitorConfig('ltc6804', flags.prefix, Ltc6804DeviceConfig) gen.LoadConfig(config_module.ltc6804_config) generate_monitor_base.WriteOutputFiles(flags, gen)
def Main(argv): """Entry point.""" flags = generate_monitor_base.ParseFlags(argv) config_module = generate_monitor_base.GetConfigModule(flags) gen = generate_monitor_base.GenerateMonitorConfig('ads7828', flags.prefix, Ads7828DeviceConfig) gen.LoadConfig(config_module.ads7828_config, multiple_configs_per_device=True) generate_monitor_base.WriteOutputFiles(flags, gen)
def Main(argv): """Entry point.""" flags = generate_monitor_base.ParseFlags(argv) config_module = generate_monitor_base.GetConfigModule(flags) gen = generate_monitor_base.GenerateMonitorConfig( 'analog', flags.prefix, AnalogDeviceConfig, common_group='input', get_revision_fields=GenerateRevisionFields) is_voltage = lambda x: x['type'] == analog_types.kAnalogTypeVoltage gen.CreateGroup('voltage', is_member_function=is_voltage) gen.LoadConfig(config_module.analog_config) generate_monitor_base.WriteOutputFiles(flags, gen)