| Electronic Components Datasheet Search |
|
UM0851 Datasheet(PDF) 189 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0851 Datasheet(HTML) 189 Page - STMicroelectronics |
|
189 / 245 page ![]() UM0851 Human interface device (HID) drivers Doc ID 16604 Rev 2 189/245 be stored. Type of data is unsigned int. Count: can be greater than one only for channel zero where dma transfers are possible. For all other channels it must be equal to one otherwise error is returned. */ On success zero is returned, otherwise negative standard kernel errors are returned. Get ADC configuration Use the following calls to get the configuration of the ADC device: User level: ioctl (fd, ADCIOC_GET_CONFIG, &config); On success zero is returned otherwise -1 is returned and errno is set appropriately. Kernel level: spear_adc_get_configure(dev, ADC_CHANNEL0, config); On success zero is returned, otherwise negative standard kernel errors are returned. In the function calls, config is instance of the previously defined struct adc_config. Get ADC channel configuration Use the following calls to get the configuration of any ADC channel: User level: ioctl (fd, ADCIOC_GET_CHAN_CONFIG, &chan_config); On success, zero is returned otherwise -1 is returned and errno is set appropriately. Kernel level: spear_adc_get_chan_configure(dev, chan_config); On success, zero is returned otherwise negative standard kernel errors are returned. In the function calls, chan_config is an instance of the previously defined struct adc_chan_config. Close / put channel The channel must be freed after you have finished using it to convert data for the moment. This is done using the following call: User level: close(fd); On success, zero is returned otherwise -1 is returned and errno is set appropriately. Kernel level: spear_adc_chan_put(dev, ADC_CHANNEL0); On success, zero is returned otherwise negative standard kernel errors are returned. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |