Lines Matching full:channels
29 uint8_t channels; member
37 uint8_t channels; member
69 if (channel_cfg->channel_id >= config->channels) { in mcp320x_channel_setup()
84 uint8_t channels = 0; in mcp320x_validate_buffer_size() local
88 for (mask = BIT(config->channels - 1); mask != 0; mask >>= 1) { in mcp320x_validate_buffer_size()
89 if (mask & sequence->channels) { in mcp320x_validate_buffer_size()
90 channels++; in mcp320x_validate_buffer_size()
94 needed = channels * sizeof(uint16_t); in mcp320x_validate_buffer_size()
118 if (find_msb_set(sequence->channels) > config->channels) { in mcp320x_start_read()
119 LOG_ERR("unsupported channels in mask: 0x%08x", in mcp320x_start_read()
120 sequence->channels); in mcp320x_start_read()
160 data->channels = ctx->sequence.channels; in adc_context_start_sampling()
248 while (data->channels) { in mcp320x_acquisition_thread()
249 channel = find_lsb_set(data->channels) - 1; in mcp320x_acquisition_thread()
265 WRITE_BIT(data->channels, channel, 0); in mcp320x_acquisition_thread()
320 .channels = ch, \
330 * MCP3204: 4 channels
335 * MCP3208: 8 channels