libww libww
WWitch compatibility library for the Wonderful toolchain
Loading...
Searching...
No Matches
timer.h File Reference
#include <sys/types.h>

Go to the source code of this file.

Macros

#define RTC_YEAR   0
#define RTC_MONTH   1
#define RTC_DATE   2
#define RTC_DAY_OF_WEEK   3
#define RTC_HOUR   4
#define RTC_MIN   5
#define RTC_SEC   6
#define TIMER_HBLANK   0
#define TIMER_VBLANK   1
#define TIMER_ONESHOT   0
#define TIMER_AUTOPRESET   1
#define rtc_set_year(value)
#define rtc_set_month(value)
#define rtc_set_date(value)
#define rtc_set_day_of_week(value)
#define rtc_set_hour(value)
#define rtc_set_minute(value)
#define rtc_set_second(value)
#define rtc_get_year()
#define rtc_get_month()
#define rtc_get_date()
#define rtc_get_day_of_week()
#define rtc_get_hour()
#define rtc_get_minute()
#define rtc_get_second()

Functions

static void rtc_reset (void)
static void rtc_set_datetime (uint16_t field, uint16_t value)
static uint16_t rtc_get_datetime (uint16_t field)
void rtc_set_datetime_struct (const datetime_t __far *value)
void rtc_get_datetime_struct (datetime_t __far *value)
static void rtc_enable_alarm (uint8_t hour, uint8_t minute)
static void rtc_disable_alarm (void)
static void timer_enable (uint8_t type, uint16_t reload, uint16_t count)
static void timer_disable (uint8_t type)
static void timer_get_count (uint8_t type)

Macro Definition Documentation

◆ RTC_DATE

#define RTC_DATE   2

Definition at line 11 of file timer.h.

◆ RTC_DAY_OF_WEEK

#define RTC_DAY_OF_WEEK   3

Definition at line 12 of file timer.h.

◆ rtc_get_date

#define rtc_get_date ( )
Value:
#define RTC_DATE
Definition timer.h:11
static uint16_t rtc_get_datetime(uint16_t field)
Definition timer.h:61

Definition at line 35 of file timer.h.

◆ rtc_get_day_of_week

#define rtc_get_day_of_week ( )
Value:
#define RTC_DAY_OF_WEEK
Definition timer.h:12

Definition at line 36 of file timer.h.

◆ rtc_get_hour

#define rtc_get_hour ( )
Value:
#define RTC_HOUR
Definition timer.h:13

Definition at line 37 of file timer.h.

◆ rtc_get_minute

#define rtc_get_minute ( )
Value:
#define RTC_MIN
Definition timer.h:14

Definition at line 38 of file timer.h.

◆ rtc_get_month

#define rtc_get_month ( )
Value:
#define RTC_MONTH
Definition timer.h:10

Definition at line 34 of file timer.h.

◆ rtc_get_second

#define rtc_get_second ( )
Value:
#define RTC_SEC
Definition timer.h:15

Definition at line 39 of file timer.h.

◆ rtc_get_year

#define rtc_get_year ( )
Value:
#define RTC_YEAR
Definition timer.h:9

Definition at line 33 of file timer.h.

◆ RTC_HOUR

#define RTC_HOUR   4

Definition at line 13 of file timer.h.

◆ RTC_MIN

#define RTC_MIN   5

Definition at line 14 of file timer.h.

◆ RTC_MONTH

#define RTC_MONTH   1

Definition at line 10 of file timer.h.

◆ RTC_SEC

#define RTC_SEC   6

Definition at line 15 of file timer.h.

◆ rtc_set_date

#define rtc_set_date ( value)
Value:
static void rtc_set_datetime(uint16_t field, uint16_t value)
Definition timer.h:51

Definition at line 27 of file timer.h.

◆ rtc_set_day_of_week

#define rtc_set_day_of_week ( value)
Value:

Definition at line 28 of file timer.h.

◆ rtc_set_hour

#define rtc_set_hour ( value)
Value:

Definition at line 29 of file timer.h.

◆ rtc_set_minute

#define rtc_set_minute ( value)
Value:

Definition at line 30 of file timer.h.

◆ rtc_set_month

#define rtc_set_month ( value)
Value:

Definition at line 26 of file timer.h.

◆ rtc_set_second

#define rtc_set_second ( value)
Value:

Definition at line 31 of file timer.h.

◆ rtc_set_year

#define rtc_set_year ( value)
Value:

Definition at line 25 of file timer.h.

◆ RTC_YEAR

#define RTC_YEAR   0

Definition at line 9 of file timer.h.

◆ TIMER_AUTOPRESET

#define TIMER_AUTOPRESET   1

Definition at line 23 of file timer.h.

◆ TIMER_HBLANK

#define TIMER_HBLANK   0

Definition at line 18 of file timer.h.

◆ TIMER_ONESHOT

#define TIMER_ONESHOT   0

Definition at line 22 of file timer.h.

◆ TIMER_VBLANK

#define TIMER_VBLANK   1

Definition at line 19 of file timer.h.

Function Documentation

◆ rtc_disable_alarm()

void rtc_disable_alarm ( void )
inlinestatic

Definition at line 86 of file timer.h.

◆ rtc_enable_alarm()

void rtc_enable_alarm ( uint8_t hour,
uint8_t minute )
inlinestatic

Definition at line 76 of file timer.h.

◆ rtc_get_datetime()

uint16_t rtc_get_datetime ( uint16_t field)
inlinestatic

Definition at line 61 of file timer.h.

◆ rtc_get_datetime_struct()

void rtc_get_datetime_struct ( datetime_t __far * value)

◆ rtc_reset()

void rtc_reset ( void )
inlinestatic

Definition at line 41 of file timer.h.

◆ rtc_set_datetime()

void rtc_set_datetime ( uint16_t field,
uint16_t value )
inlinestatic

Definition at line 51 of file timer.h.

◆ rtc_set_datetime_struct()

void rtc_set_datetime_struct ( const datetime_t __far * value)

◆ timer_disable()

void timer_disable ( uint8_t type)
inlinestatic

Definition at line 106 of file timer.h.

◆ timer_enable()

void timer_enable ( uint8_t type,
uint16_t reload,
uint16_t count )
inlinestatic

Definition at line 96 of file timer.h.

◆ timer_get_count()

void timer_get_count ( uint8_t type)
inlinestatic

Definition at line 116 of file timer.h.