Porting of the host application
Copyright IXXAT Automation GmbH
44
IEM Manual, 1.5
3.1.3.3.2.2 SPI_Write()
void SPI_Write(const void *pv_src, const void *pv_dst, UINT16 w_length);
Description
Function to perform SPI WRITE command
Parameter
Dir.
Description
pv_src
IN
pointer to source buffer
pv_dst
OUT
destination address in SHM
w_length
IN
data length to be sent/received
Return Value
Description
-
-
3.1.3.3.2.3 SPI_Read()
void SPI_Read(const void* pv_src, void* pv_dst, UINT16 w_length);
Description
Function to perform SPI READ command
Parameter
Dir.
Description
pv_src
IN
source address in SHM
pv_dst
OUT
pointer to rx buffer
w_length
IN
data length to be sent/received
Return Value
Description
-
-
3.2
Configuring
3.2.1 Endianess
The EMI API was developed to support little endian and big endian host tar-
gets. All accesses to native data types through the EMI API are translated in
the proper format (little endian) automatically. Nevertheless the host applica-
tion has to verify that all direct memory accesses to the shared memory are
performed in little endian manner. To keep this task as simple as possible, it is
recommended to use the memory access macros from Integral.h in your appli-