a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
Include
 classes
 clib
 datatypes
 devices
  audio.i / .h
  bootblock.i / .h
  cd.i / .h
  clipboard.i / .h
  console.i / .h
  conunit.i / .h
  gameport.i / .h
  hardblocks.i / .h
  input.i / .h
  inputevent.i / .h
  keyboard.i / .h
  keymap.i / .h
  narrator.i / .h
  parallel.i / .h
  printer.i / .h
  prtbase.i / .h
  prtgfx.i / .h
  scsidisk.i / .h
  serial.i / .h
  timer.i / .h
  trackdisk.i / .h
 diskfont
 dos
 exec
 gadgets
 graphics
 hardware
 images
 intuition
 libraries
 pragma
 pragmas
 prefs
 proto
 reaction
 resources
 rexx
 utility
 workbench
GuruMeditation
Docs » Include » devices » timer.i / .h
	IFND	DEVICES_TIMER_I
DEVICES_TIMER_I	SET	1
**
**	$VER: timer.i 36.10 (5.3.1991)
**	Includes Release 45.1
**
**	Timer device name and useful definitions.
**
**	(C) Copyright 1985-2001 Amiga, Inc.
**		All Rights Reserved
**


	IFND	EXEC_TYPES_I
	INCLUDE "exec/types.i"
	ENDC

	IFND	EXEC_IO_I
	INCLUDE "exec/io.i"
	ENDC

* unit defintions
UNIT_MICROHZ	EQU	0
UNIT_VBLANK	EQU	1
UNIT_ECLOCK	EQU	2
UNIT_WAITUNTIL	EQU	3
UNIT_WAITECLOCK	EQU	4

TIMERNAME	MACRO
		DC.B	'timer.device',0
		DS.W	0
		ENDM

 STRUCTURE TIMEVAL,0
	ULONG	TV_SECS
	ULONG	TV_MICRO
	LABEL	TV_SIZE

 STRUCTURE ECLOCKVAL,0
	ULONG	EV_HI
	ULONG	EV_LO
	LABEL	EV_SIZE

 STRUCTURE TIMEREQUEST,IO_SIZE
	STRUCT	IOTV_TIME,TV_SIZE
	LABEL	IOTV_SIZE

* IO_COMMAND to use for adding a timer
	DEVINIT
	DEVCMD	TR_ADDREQUEST
	DEVCMD	TR_GETSYSTIME
	DEVCMD	TR_SETSYSTIME

	ENDC	; DEVICES_TIMER_I

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Fairlight

HZ
FLT
AFL
PHA

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se