English
Language : 

DS3131DK Datasheet, PDF (29/33 Pages) Dallas Semiconductor – Bit-SynchronouS (BoSS) HDLC Controller Demo Kit
hdlc.c
HDLC Functions
FUNCTION
BosshdlcDevReset
hdlcDevOff
BosshdlcChanOpen
hdlcChanClose
BosshdlcChanGetState
hdlcChanTrafficCtrl
drv.c
Driver Level Functions
FUNCTION
drvGetVmemBase
drvGetPmemBase
drvVAddr2Paddr
drvPAddr2Vaddr
drvWriteReg
drvReadReg
drvWriteIReg
drvReadIReg
BossdrvDevInit
drvDevOff
drvWrIReg
drvRdIReg
BossdrvInitIRegs
drvIntCallback
DrvGetIsrStats
drvInitIRegs
DrvGetdmaDesc
DrvUpdatedmaDesc
PURPOSE
Reset the device and its data (not called directly)
Turn the device off (not called directly)
Open a channel with specified parameters
Close a channel
Return the status of the channel
Control a channel’s traffic
PURPOSE
Get virtual memory base address (calls to syswd.c)
Get physical memory base address (calls to syswd.c)
Convert virtual address to physical addr (calls to syswd.c)
Convert physical address to virtual addr (calls to syswd.c)
Write a value into a device register
Read a value from a device register
Write a value into an indirect register
Read a value from an indirect register
Reset and initialize the device
Put the device in reset
Write to an indirect register
Read from an indirect register
Write a zero to an indirect register
The interrupt callback from the ISR (only DMA int.s today)
Get a pointer to the interrupt service routine stats
Write a zero to all indirect registers of the device
Get a pointer to the structure describing DMA configuration
Get a pointer to the structure of DMA updated configuration
DS3131DK
RETURNS
Nothing
Nothing
Nothing
Nothing
TRUE if open, FALSE otherwise
Nothing
RETURNS
unsigned long
unsigned long
unsigned long
unsigned long
TRUE (success) FALSE (failure)
-1 on failure or the reg value on success
TRUE (success) FALSE (failure)
-1 on failure or the int32 reg value on
success
FALSE if device does not exist
Nothing
Nothing
int32 Register value
Nothing
Nothing
drvIsrStats *
Nothing
DrvDmaDesc *
DrvDmaDesc *
29 of 33