Defines | |
| #define | dev_open_DEV_MICA2_MIC() mos_mutex_lock(&mic_mutex) |
| gain an exclusive lock on the Microphone. Any other threads calling dev_open_DEV_MICA2_MIC() will block until the owner calls dev_close_DEV_MICA2_MIC(). | |
| #define | dev_close_DEV_MICA2_MIC() mos_mutex_unlock(&mic_mutex) |
| release exclusive lock on the Microphone. Any other thread blocking on dev_open_DEV_MICA2_MIC() will now unblock. | |
Functions | |
| uint16_t | dev_read_DEV_MICA2_MIC (void *buf, uint16_t count) |
| read from the Microphone into buf. | |
| uint16_t | dev_write_DEV_MICA2_MIC (const void *buf, uint16_t count) |
| not supported for the MICA2 Microphone. | |
| uint8_t | dev_mode_DEV_MICA2_MIC (uint8_t md) |
change the status of the MICA2 Microphone. Accepted parameters are:
| |
| uint8_t | dev_ioctl_DEV_MICA2_MIC (int8_t request,...) |
| not supported for the MICA2 Microphone. | |
Variables | |
| mos_mutex_t | mic_mutex |
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
For internal use only. Used by the dev_open and dev_close functions. |
1.4.6