Defines | |
| #define | dev_open_DEV_MICA2_BATTERY(void) mos_mutex_lock(&battery_mutex) |
| gain an exclusive lock on the Battery. Any other threads calling dev_open_DEV_MICA2_BATTERY() will block until the owner calls dev_close_DEV_MICA2_BATTERY(). | |
| #define | dev_close_DEV_MICA2_BATTERY(void) mos_mutex_unlock(&battery_mutex) |
| release exclusive lock on the Battery. Any other thread blocking on dev_open_DEV_MICA2_BATTERY() will now unblock. | |
Functions | |
| uint16_t | dev_read_DEV_MICA2_BATTERY (void *buf, uint16_t count) |
| read the current battery value. | |
| uint16_t | dev_write_DEV_MICA2_BATTERY (const void *buf, uint16_t count) |
| not supported by the MICA2 Battery Driver. | |
| uint8_t | dev_mode_DEV_MICA2_BATTERY (uint8_t md) |
change the mode of the mica2 battery driver. Accepted parameters are:
| |
| uint8_t | dev_ioctl_DEV_MICA2_BATTERY (int8_t request,...) |
| not supported by the MICA2 Battery Driver. | |
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
1.4.6