Defines | |
| #define | dev_open_DEV_ADC() mos_mutex_lock(&adc_mutex) |
| gain an exclusive lock on the ADC. Any other threads calling dev_open_DEV_ADC() will block until the owner calls dev_close_DEV_ADC(). | |
| #define | dev_close_DEV_ADC() mos_mutex_unlock(&adc_mutex) |
| release exclusive lock on the ADC. Any other thread blocking on dev_open_DEV_ADC() will now unblock. | |
Functions | |
| uint16_t | dev_read_DEV_ADC (void *buf, uint16_t count) |
| read from the ADC into buf. | |
| uint16_t | dev_write_DEV_ADC (const void *buf, uint16_t count) |
| not supported for the ADC. | |
| uint8_t | dev_mode_DEV_ADC (uint8_t md) |
change the status of the ADC. Accepted parameters are:
| |
| uint8_t | dev_ioctl_DEV_ADC (int8_t request,...) |
send an IO Control to the ADC. Accepted parameters are:
| |
Variables | |
| mos_mutex_t | adc_mutex |
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
For internal use only. Used by the dev_open and dev_close functions. |
1.4.6