MPI 04.00 Reference >> mpiPlatform

mpiPlatformFirmwareAddress32To16

Declaration

int32_t mpiPlatformFirmwareAddress32To16(MPIPlatform            platform,
                                         _MFWPTR(void *)      *firmwareAddress,
                                         int32_t              lowWord)

 

Required Header: stdmpi.h
Change History: Modified in MPI 04.04..

Description

mpiPlatformFirmwareAddress32To16 takes a firmware address that is in the 32-bit space of the controller and converts it to the 16-bit space.
Set lowWord to 1 to tell the function to return the 16-bit address of the lower 16-bit word.
Set lowWord to 0 to get the 16-bit address of the upper 16-bit word.

platform MPIPlatform object
*firmwareAddress Pointer to a valid firmware address from the firmware’s perspective.
lowWord lowWord set to 1 tells the function to return the 16-bit address of the lower 16-bit word. lowWord set to 0 gets the 16-bit address of the upper 16 bit word.
Returns
MPIMessageOK
MPIPlatformMessageDEVICE_ERROR Returned if no ZMP controller is found.

See Also

mpiPlatformFirmwareAddress16To32