IPC API  3.40.00.06
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. More...
 
#define Mx_E_FAIL   (-1)
 Operation failed. More...
 

Functions

int Mx_initialize (UInt16 procId)
 Initialize the module, must be called first. More...
 
void Mx_finalize (void)
 Finalize the module, must be called last. More...
 
int32_t Mx_triple (uint32_t a)
 Sample function which multiplies argument by three. More...
 
int32_t Mx_add (int32_t a, int32_t b)
 Sample function which addes two arguments. More...
 
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. More...
 

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 2015, Texas Instruments Incorporated