IPC API  3.10.00.08
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
Mx.h File Reference

Detailed Description

Example of a host-side module which uses MmRpc to invoke functions on a remote processor.

============================================================================


#include <stddef.h>
#include <stdint.h>
Include dependency graph for Mx.h:

Go to the source code of this file.

Data Structures

struct  Mx_Compute
 Compute structure. More...

Macros

#define Mx_S_SUCCESS   (0)
 Operation is successful.
#define Mx_E_FAIL   (-1)
 Operation failed.

Functions

int Mx_initialize (UInt16 procId)
 Initialize the module, must be called first.
void Mx_finalize (void)
 Finalize the module, must be called last.
int32_t Mx_triple (uint32_t a)
 Sample function which multiplies argument by three.
int32_t Mx_add (int32_t a, int32_t b)
 Sample function which addes two arguments.
int32_t Mx_compute_Linux (Mx_Compute *compute, int fd, int fdIn, int fdOut)
 Sample function which has pointer parameter (DMA_BUF) to a structure with two embedded pointers. Linux version.

Macro Definition Documentation

#define Mx_S_SUCCESS   (0)

Operation is successful.

#define Mx_E_FAIL   (-1)

Operation failed.


Function Documentation

int Mx_initialize ( UInt16  procId)

Initialize the module, must be called first.

void Mx_finalize ( void  )

Finalize the module, must be called last.

int32_t Mx_triple ( uint32_t  a)

Sample function which multiplies argument by three.

int32_t Mx_add ( int32_t  a,
int32_t  b 
)

Sample function which addes two arguments.

int32_t Mx_compute_Linux ( Mx_Compute compute,
int  fd,
int  fdIn,
int  fdOut 
)

Sample function which has pointer parameter (DMA_BUF) to a structure with two embedded pointers. Linux version.

Copyright 2013, Texas Instruments Incorporated