Searched refs:channel_data (Results 1 – 2 of 2) sorted by relevance
69 struct ads1015_channel_data channel_data[ADS1015_CHANNELS]; member77 unsigned int pga = data->channel_data[channel].pga; in ads1015_read_adc()78 unsigned int data_rate = data->channel_data[channel].data_rate; in ads1015_read_adc()127 unsigned int pga = data->channel_data[channel].pga; in ads1015_reg_to_mv()225 data->channel_data[channel].enabled = true; in ads1015_get_channels_config_of()226 data->channel_data[channel].pga = pga; in ads1015_get_channels_config_of()227 data->channel_data[channel].data_rate = data_rate; in ads1015_get_channels_config_of()242 memcpy(data->channel_data, pdata->channel_data, in ads1015_get_channels_config()243 sizeof(data->channel_data)); in ads1015_get_channels_config()254 data->channel_data[k].enabled = true; in ads1015_get_channels_config()[all …]
110 struct channel_data { struct120 char *(*setup_rx)(struct channel_data *channel, int size); argument122 int (*rx_done)(struct channel_data *channel); argument124 int (*tx_done)(struct channel_data *channel, int size); argument159 struct channel_data *rxchan; argument162 struct channel_data *chan;273 static void cosa_enable_rx(struct channel_data *chan);274 static void cosa_disable_rx(struct channel_data *chan);275 static int cosa_start_tx(struct channel_data *channel, char *buf, int size);277 static int cosa_dma_able(struct channel_data *chan, char *buf, int data);[all …]