miosix::Time Struct Reference
[Hardware]
#include <bsp.h>
List of all members.
|
Public Attributes |
|
unsigned char | sec |
| | Seconds, in range 0..59.
|
|
unsigned char | min |
| | Minutes, in range 0..59.
|
|
unsigned char | hour |
| | Hours, in range 0..23.
|
|
unsigned char | day |
| | Day, in range 1..31.
|
|
unsigned char | month |
| | Month, in range 1..12.
|
|
unsigned int | year |
| | Year, in range 0..4095 ;).
|
|
DayOfWeek | dow |
| | Day of week. This is not taken into account for wakeup time.
|
| unsigned char | wakeup_mask |
Detailed Description
Time struct, used to get/set time. It can also be passed to
sleep() to automatically wakeup the device at any given time.
Member Data Documentation
This is only used for wakeup time
- bit 0 = if @ 1, sec is not considered for wakeup time
- bit 1 = if @ 1, min is not considered for wakeup time
- bit 2 = if @ 1, hour is not considered for wakeup time
- bit 3 = if @ 1, day is not considered for wakeup time
- bit 4 = if @ 1, month is not considered for wakeup time
- bit 5 = if @ 1, year is not considered for wakeup time
The documentation for this struct was generated from the following file:
- /home/fede/Documents/Projects/ARM/miosix/miosix_np/miosix/drivers/bsp.h