Download 1. Introducton

Transcript
3.4.5
PCIM512_ReadSramWord
• Description:
Read one word, 16-bit data from SRAM of PCI-M512/M512U.
•
•
•
•
Syntax:
DWORD PCIM512_ReadSramWord(dwBoardNo, dwOffset, *Data)
Parameter:
dwBoardNo
dwOffset
Data
: [Input] board number, from 1 to N
: [Input] offset address of SRAM, from 0 to 0x7fffe
: [output] one word of data (16-bit)
Return:
0:
Write OK
PCI_DriverNoOpen:
kernel driver no find
PCI_BoardNoIsZero: dwBoardNo is 0, it must be in the range of 1 ~ N
PCI_BoardNoExceedFindBoards: dwBoardNo > N
Note:
1. call PCIM512_DetectBoards() before calling this function
2. call PCIM512_ReadBoardId(…) to identify the detected PCIM512/M512U boards. Refer to Sec. 2.2 for more information.
PCI-M512 User Manual (Ver.2.2, May 2007, PMH-017-22)
----- 42