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... |
|
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. |
|
configures one fastbin for usage.
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. |
|
sets a preconfigured fast binary output.
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. |
|
internal fastbin config structure.
|