Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/drivers/tpu/tpud.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define TPU_ILEVEL   0x4
 Interrupt level of the TPU (for reference only). More...

#define TCR1FREQ   1000000
 clock frequency of the TCR1 TPU timer (for reference only). More...

#define TCR2FREQ   1000000
 clock frequency of the TCR2 TPU timer (for reference only). More...


Functions

int TPU_init ()
int TPU_makepwm (unsigned char nr)
 configure TP channel as PWM output, default clock source. More...

int TPU_initchannel (unsigned char nr)
 resets TPU channel nr. More...

int TPU_setpwmperiod (unsigned char nr, unsigned short period)
 sets the PWM period of TPU PWM channel nr to period. More...

int TPU_setpwmdc (unsigned char nr, unsigned char hightime)
int TPU_makepac (unsigned char nr)
int TPU_makeqd (unsigned char ch1, unsigned char ch2)
unsigned short TPU_getpac (unsigned char nr)
short TPU_getqd (unsigned char nr)
short TPU_readqd (unsigned char nr)
int TPU_setisr (unsigned char ch, void(*isr)(void))
int TPU_clearisr (unsigned char ch, void(*isr)(void))
int TPU_makedio (unsigned char nr)
int TPU_setdio (unsigned char nr, unsigned char v)


Define Documentation

#define TCR1FREQ   1000000
 

clock frequency of the TCR1 TPU timer (for reference only).

Definition at line 20 of file tpud.h.

#define TCR2FREQ   1000000
 

clock frequency of the TCR2 TPU timer (for reference only).

Definition at line 21 of file tpud.h.

#define TPU_ILEVEL   0x4
 

Interrupt level of the TPU (for reference only).

Definition at line 19 of file tpud.h.


Function Documentation

int TPU_clearisr unsigned char    ch,
void(*    isr)(void)
 

Definition at line 393 of file tpud.c.

unsigned short TPU_getpac unsigned char    nr
 

Definition at line 311 of file tpud.c.

short TPU_getqd unsigned char    nr
 

Definition at line 356 of file tpud.c.

int TPU_init  
 

Definition at line 67 of file tpud.c.

int TPU_makedio unsigned char    nr
 

Definition at line 129 of file tpud.c.

Referenced by FBIN_make.

int TPU_makepac unsigned char    nr
 

Definition at line 298 of file tpud.c.

int TPU_makeqd unsigned char    ch1,
unsigned char    ch2
 

Definition at line 330 of file tpud.c.

short TPU_readqd unsigned char    nr
 

Definition at line 372 of file tpud.c.

int TPU_setdio unsigned char    nr,
unsigned char    v
 

Definition at line 144 of file tpud.c.

Referenced by FBIN_make, and FBIN_set.

int TPU_setisr unsigned char    ch,
void(*    isr)(void)
 

Definition at line 387 of file tpud.c.

int TPU_setpwmdc unsigned char    nr,
unsigned char    hightime
 

Definition at line 259 of file tpud.c.


Generated on Thu Feb 20 15:38:50 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002