Home
last modified time | relevance | path

Searched refs:ddp (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/samples/boards/nordic/battery/src/
Dbattery.c87 struct divider_data *ddp = &divider_data; in divider_setup() local
88 struct adc_sequence *asp = &ddp->adc_seq; in divider_setup()
89 struct adc_channel_cfg *accp = &ddp->adc_cfg; in divider_setup()
92 if (!device_is_ready(ddp->adc)) { in divider_setup()
93 LOG_ERR("ADC device is not ready %s", ddp->adc->name); in divider_setup()
112 .buffer = &ddp->raw, in divider_setup()
113 .buffer_size = sizeof(ddp->raw), in divider_setup()
137 rc = adc_channel_setup(ddp->adc, accp); in divider_setup()
176 struct divider_data *ddp = &divider_data; in battery_sample() local
178 struct adc_sequence *sp = &ddp->adc_seq; in battery_sample()
[all …]