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

Fastbin driver


Files

file  fastbin.c
file  fastbin.h

Compounds

struct  fb_info
 internal fastbin config structure. More...


Functions

int FBIN_init ()
 prepares the fastbin system for use. More...

int FBIN_make (int nr, char type, char id)
 configures one fastbin for usage. More...

int FBIN_set (int i, char v)
 sets a preconfigured fast binary output. More...


Variables

fb_info fbs [MAXFB]
 internal fastbin config structure. More...


Function Documentation

int FBIN_init  
 

prepares the fastbin system for use.

prepares the fastbin system for use. Initializes the fastbin type code for all fastbins to FBTYPE_EMPTY.

Definition at line 55 of file fastbin.c.

References FBTYPE_EMPTY, fb_info::id, RCJ_init, RG_init, and fb_info::type.

int FBIN_make int    nr,
char    type,
char    id
 

configures one fastbin for usage.

Parameters:
nr  is the fastbin number
type  is the fastbin type
id  is the fastbin id
This function configures one of the 16 hardware-independent fast binary outputs (FBINs) for use. type specifies the hardware connection of the fastbin. Available types are:

FBIN_DUART for MC68681 DUART binary outputs as they are used for motor control in the SMBII and Cube 1 hardware.

FBIN_TPU for using TPU channels as binary outputs via the DIO function

FBIN_TTL for the dedicated fastbin register in Cube3.

FBIN_CPU for using MC68332 cpu output signal pins for motor control. Currently, only the PCS1 pin is supported.

FBIN_RCJ for using a decoded external 8bit register as used on RCJ boards.

All types require an additional id parameter to specify the pin to use. For the register, id denotes the bit from LSB to MSB, for the TPU, id is the channel to use, for DUART and CPU, the pins are implementation-dependent.

Definition at line 98 of file fastbin.c.

References _FBIN_ttlfastbin_state, DUART_clearOPCR, ERR_WARN, FBCPU_PCS1, FBIN_rcjfastbin_state, FBTYPE_CPU, FBTYPE_DUART, FBTYPE_EMPTY, FBTYPE_RCJ, FBTYPE_TPU, FBTYPE_TTL, fb_info::id, KERN_complain, readbyte, SPI_QDDR, SPI_QPAR, SPI_QPDR, TPU_makedio, TPU_setdio, fb_info::type, writebyte, and writeshort.

int FBIN_set int    i,
char    v
 

sets a preconfigured fast binary output.

Parameters:
i  is the fastbin number
v  is the level (1 or 0)

Definition at line 211 of file fastbin.c.

References _FBIN_ttlfastbin_state, clearDUARTOPR, FBCPU_PCS1, FBIN_rcjfastbin_state, FBTYPE_CPU, FBTYPE_DUART, FBTYPE_RCJ, FBTYPE_TPU, FBTYPE_TTL, fb_info::id, readbyte, setDUARTOPR, SPI_QPDR, TPU_setdio, fb_info::type, writebyte, and writeshort.


Variable Documentation

struct fb_info fbs[MAXFB]
 

internal fastbin config structure.

Definition at line 43 of file fastbin.c.


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