📄 bsp.h
字号:
{$BSP_DIR}/src/drv/mms/dy4mmsMP.c*/IMPORT STATUS dy4mmsMsgRecv ( int qId, void **msg, unsigned int *size, unsigned int timeout );/* dy4mmsMsgSend - Send a message to the other CPU Location: {$BSP_DIR}/src/drv/mms/dy4mmsMP.c*/IMPORT STATUS dy4mmsMsgSend ( int qId, void *msg, unsigned int size, unsigned int timeout, unsigned int priority );/* dy4mmsSemCreate - Create a sem Location: {$BSP_DIR}/src/drv/mms/dy4mmsMP.c*/IMPORT STATUS dy4mmsSemCreate ( DY4MMS_SEM_ID semId, int type );/* dy4mmsSemDelete - Delete a semaphore Location: {$BSP_DIR}/src/drv/mms/dy4mmsMP.c*/IMPORT STATUS dy4mmsSemDelete ( DY4MMS_SEM_ID semId );/* dy4mmsSemTake - Get a semaphore Location: {$BSP_DIR}/src/drv/mms/dy4mmsMP.c*/IMPORT STATUS dy4mmsSemTake ( DY4MMS_SEM_ID semId, int timeout);/* dy4mmsSemGive - Release a semaphore Location: {$BSP_DIR}/src/drv/mms/dy4mmsMP.c*/IMPORT STATUS dy4mmsSemGive ( DY4MMS_SEM_ID semId);/* dy4mmsShow - Location: {$BSP_DIR}/src/drv/mms/dy4mmsMP.c*/void dy4mmsShow(void);/* Thermal ****************************************************//* dy4ThermalConnect - Connect a C routine to temperature interrupt Location: {$BSP_DIR}/src/drv/thermal/dy4max6634.c*/IMPORT void dy4ThermalConnect ( DY4THERMAL_ID id, void (*routine)(int), int arg );/* dy4ThermalHwInit - Initialize temperature sensors Location: {$BSP_DIR}/src/drv/thermal/dy4max6634.c*/IMPORT void dy4ThermalHwInit ( void );/* dy4ThermalHwInit2 - Initialize temperature sensor interrupts Location: {$BSP_DIR}/src/drv/thermal/dy4max6634.c*/IMPORT void dy4ThermalHwInit2 ( void );/* dy4ThermalGetConfig - Get the max6634 config register value Location: {$BSP_DIR}/src/drv/thermal/dy4max6634.c*/IMPORT STATUS dy4ThermalGetConfig ( DY4THERMAL_ID sensId, char *data );/* dy4ThermalGetHighTemp - Get the high temperature warning value Location: {$BSP_DIR}/src/drv/thermal/dy4max6634.c*/IMPORT STATUS dy4ThermalGetHighTemp ( DY4THERMAL_ID sensId, int *data );/* dy4ThermalGetHystTemp - Get the Hysterisis temperature warning value Location: {$BSP_DIR}/src/drv/thermal/dy4max6634.c*/IMPORT STATUS dy4ThermalGetHystTemp ( DY4THERMAL_ID sensId, int *data );/* dy4ThermalGetLowTemp - Get the low temperature warning value Location: {$BSP_DIR}/src/drv/thermal/dy4max6634.c*/IMPORT STATUS dy4ThermalGetLowTemp ( DY4THERMAL_ID sensId, int *data );/* dy4ThermalReadTemp - Read temperature Location: {$BSP_DIR}/src/drv/thermal/dy4max6634.c*/IMPORT STATUS dy4ThermalReadTemp ( DY4THERMAL_ID sensId, DY4THERMAL_UNIT unit, int *data );/* dy4ThermalSetConfig - Set the max6634 config register Location: {$BSP_DIR}/src/drv/thermal/dy4max6634.c*/IMPORT STATUS dy4ThermalSetConfig ( DY4THERMAL_ID sensId, char data );/* dy4ThermalSetHighTemp - Set the high temperature warning value Location: {$BSP_DIR}/src/drv/thermal/dy4max6634.c*/IMPORT STATUS dy4ThermalSetHighTemp ( DY4THERMAL_ID sensId, int temp );/* dy4ThermalSetHystTemp - Set the Hysterisis temperature warning value Location: {$BSP_DIR}/src/drv/thermal/dy4max6634.c*/IMPORT STATUS dy4ThermalSetHystTemp ( DY4THERMAL_ID sensId, int temp );/* dy4ThermalSetLowTemp - Set the low temperature warning value Location: {$BSP_DIR}/src/drv/thermal/dy4max6634.c*/IMPORT STATUS dy4ThermalSetLowTemp ( DY4THERMAL_ID sensId, int temp );/* EEPROM Library *************************************************************//* eepromRead - Read from EEPROM Location: {$BSP_DIR}/src/drv/mem/eeprom.c*/IMPORT BSP_STATUS eepromRead ( unsigned int offset, unsigned char *data, unsigned int byteCount );/* eepromWrite - Write to EEPROM Location: {$BSP_DIR}/src/drv/mem/eeprom.c*/IMPORT BSP_STATUS eepromWrite ( unsigned int offset, unsigned char *data, unsigned int byteCount );/* FPGA TIMER ***************************************************************//* fpgaTimerHwInit - Initialize FPGA timers Location: {$BSP_DIR}/src/drv/timer/fpgaTimer.c*/IMPORT void fpgaTimerHwInit();/* fpgaTimerIntClear - Clear a FPGA timer interrupt Location: {$BSP_DIR}/src/drv/timer/fpgaTimer.c*/IMPORT BSP_STATUS fpgaTimerIntClear ( IOFPGA_TIMER timer );/* fpgaTimerLoad - Load value to the FPGA timer Location: {$BSP_DIR}/src/drv/timer/fpgaTimer.c*/IMPORT BSP_STATUS fpgaTimerLoad ( IOFPGA_TIMER timer, unsigned int count );/* fpgaTimerLoad - Read the FPGA timer Location: {$BSP_DIR}/src/drv/timer/fpgaTimer.c*/IMPORT BSP_STATUS fpgaTimerRead ( IOFPGA_TIMER timer, unsigned int *count );/* fpgaTimerStart - Start a FPGA timer Location: {$BSP_DIR}/src/drv/timer/fpgaTimer.c*/IMPORT BSP_STATUS fpgaTimerStart ( IOFPGA_TIMER timer );/* fpgaTimerStop - Stop the FPGA timer Location: {$BSP_DIR}/src/drv/timer/fpgaTimer.c*/IMPORT BSP_STATUS fpgaTimerStop ( IOFPGA_TIMER timer );/* DISCO II DMA ***************************************************************//* gtDmaControl - set the given DMA engine control register with the command. Location: {$BSP_DIR}/src/drv/discovery_III/dma/gtDma_dy4.c*/IMPORT bool gtDmaControl ( DMA_ENGINE channel, unsigned int command );/* gtDmaDisable - halt DMA engine activity. Location: {$BSP_DIR}/src/drv/discovery_III/dma/gtDma_dy4.c*/IMPORT bool gtDmaDisable ( DMA_ENGINE engine );/* gtDmaIsActive - check a given DMA channel's command register bit 14 for activity. Location: {$BSP_DIR}/src/drv/discovery_III/dma/gtDma_dy4.c*/IMPORT DMA_STATUS gtDmaIsActive ( DMA_ENGINE channel );/* gtDmaSetAccessProtect - configures access attributes of a DMA engine to one of the DMA memory windows. Location: {$BSP_DIR}/src/drv/discovery_III/dma/gtDma_dy4.c*/IMPORT bool gtDmaSetAccessProtect ( DMA_ENGINE engine, DMA_MEM_SPACE memSpace, DMA_MEM_SPACE_ACCESS access );/* gtDmaSetMemorySpace - sets a DMA memory window for the DMA's address decoding map. Location: {$BSP_DIR}/src/drv/discovery_III/dma/gtDma_dy4.c*/IMPORT bool gtDmaSetMemorySpace ( DMA_MEM_SPACE memSpace, DMA_MEM_SPACE_TARGET memSPaceTarget, unsigned int memSpaceAttr, unsigned int baseAddress, unsigned int size );/* gtDmaSetMemorySpaceAttr - sets attributes for a DMA memory space. Location: {$BSP_DIR}/src/drv/discovery_III/dma/gtDma_dy4.c*/IMPORT bool gtDmaSetMemorySpaceAttr ( DMA_MEM_SPACE memSpace, unsigned int memSpaceAttr );/* gtDmaTransfer - perform user DMA transfer. Location: {$BSP_DIR}/src/drv/discovery_III/dma/gtDma_dy4.c*/IMPORT DMA_STATUS gtDmaTransfer (DMA_ENGINE engine, unsigned int sourceAddr, unsigned int destAddr, unsigned int numOfBytes, unsigned int command, DMA_RECORD *nextRecordPointer );/* gtDmaUpdateArbiter0_3 - set priorities for DMA channels 0 to 3. Location: {$BSP_DIR}/src/drv/discovery_III/dma/gtDma_dy4.c*/IMPORT bool gtDmaUpdateArbiter0_3 ( DMA_PIZZA0_3* prio0_3 );/* DISCO II DMA INT ***********************************************************//* gtDmaIntConnect() - connect a user ISR to the DMA interrupt controller. Location: {$BSP_DIR}/src/drv/discovery_III/intr/vxDmaIntCtrl.c*/IMPORT STATUS gtDmaIntConnect (DMA_CAUSE cause, VOIDFUNCPTR routine, int parameter, int prio );/* gtDmaIntCtrlInit() - initialize the DMA interrupt controller driver. Location: {$BSP_DIR}/src/drv/discovery_III/intr/vxDmaIntCtrl.c*/IMPORT void gtDmaIntCtrlInit(void);/* gtDmaIntDisable() - mask a given DMA Interrupt. Location: {$BSP_DIR}/src/drv/discovery_III/intr/vxDmaIntCntrl.c*/IMPORT STATUS gtDmaIntDisable ( DMA_CAUSE cause );/* gtDmaIntEnable() - unmask a given DMA Interrupt. Location: {$BSP_DIR}/src/drv/discovery_III/intr/vxDmaIntCntrl.c*/IMPORT STATUS gtDmaIntEnable ( DMA_CAUSE cause );/* SYSLIB.C *******************************************************************//* gtMemRead - read a block of data from a memory location. Location: {$BSP_DIR}/sysLib.c*/IMPORT void gtMemRead ( unsigned int memOffset, unsigned int *data, unsigned int memSize );/* gtRegReadBlock - read a GT internal register block. Location: {$BSP_DIR}/sysLib.c*/IMPORT void gtRegReadBlock (unsigned int offset, unsigned int *block, unsigned int length );/* gtRegWriteBlock - write a block into GT starting at a given offset. Location: {$BSP_DIR}/sysLib.c*/IMPORT void gtRegWriteBlock (unsigned int offset, unsigned int *block, unsigned int length );/* DISCO II TIMER *************************************************************//* gtTmr - read a timer or a counter value. Location: {$BSP_DIR}/src/drv/discovery_III/timer/gtCntmr_dy4.c*/IMPORT unsigned int gtTmr ( CNTMR_NUM countNum );/* gtTmrDisable - disable a given counter and return its current value. Location: {$BSP_DIR}/src/drv/discovery_III/timer/gtCntmr_dy4.c*/IMPORT unsigned int gtTmrDisable ( CNTMR_NUM countNum );/* gtTmrEnable - enable a given counter. Location: {$BSP_DIR}/src/drv/discovery_III/timer/gtCntmr_dy4.c*/IMPORT bool gtTmrEnable ( CNTMR_NUM countNum ); /* gtTmrFreq - get the MV64x60 timerN clock frequency Location: {$BSP_DIR}/h/drv/discovery_III/timer/gtTimer_dy4.h*/#define gtTmrFreq(Num) (GT64360_TMR_FREQ)/* gtTmrIntConnect - connect the user
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -