20.12.2012 Views

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

List of APIs API Call Reference<br />

above 1, and this function pointer has previously been set to a BIB<br />

show routine, this will be called.<br />

The prototype of a BIB show routine is:<br />

STATUS yourBibShow (void *pImage, size_t imgSize,<br />

BOOL verbose, FILE *output)<br />

Parameter pImage is the address of the BIB image which should<br />

be displayed. It is set to the driver's internal cache buffer.<br />

The imgSize parameter contains the number of bytes of the<br />

BIB image.<br />

The verbose flag is set TRUE if frcBibDrvShow( ) is<br />

called with an infoLvl greater than 2, otherwise it is FALSE.<br />

The output is not used here, it is set to NULL to specify "standard<br />

out". Usually the application sets this function pointer to the<br />

frcBibShow( ) routine, which has to be included by the application.<br />

frcBibShowRtn = frcBibShow<br />

STATUS (*bibReadIntfRtn) (BIB_HDL handle, UINT32 offset, UINT32 byteCnt, void *pDstBuf)<br />

DESCRIPTION This function pointer specifies the BIB read interface routine <strong>for</strong><br />

the respective BIB device. This routine directly passes control to<br />

EEPROM Device which in turn reads from the specified offset and<br />

the specified device.<br />

INPUT<br />

handle The BIB device handle specifies the memory device to access. This<br />

is usually an I 2 C-bus EEPROM (ID-ROM). The handle is not<br />

defined by the driver, but directly passed from the application to<br />

the respective interface routine. If an individual set of interface<br />

routines has been defined <strong>for</strong> each BIB device, this parameter may<br />

be discarded.<br />

offset Byte offset within the memory device where to start reading or<br />

writing.<br />

byteCnt Byte count, number of bytes to read or write.<br />

pDstBuf Destination buffer, specifies where to store the data which was<br />

read.<br />

5 - 114 VxWorks 5.5/Tornado <strong>2.2</strong> <strong>BSP</strong> <strong>Rel</strong>. <strong>1.0</strong> <strong>for</strong> <strong>PPMC</strong>-<strong>275</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!