|
AM263x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
42 #include <drivers/hw_include/cslr_soc.h>
43 #include <drivers/ipc_rpmsg/include/ipc_rpmsg_linux_resource_table.h>
60 #define RPMESSAGE_MAX_LOCAL_ENDPT (64U)
68 #define RPMESSAGE_VRING_ADDR_INVALID (0xFFFFFFFFU)
84 #define RPMESSAGE_VRING_SIZE(numBuf, bufSize) (((numBuf)*(uint16_t)((bufSize)+32U))+32U)
89 #define RPMESSAGE_OBJECT_SIZE_MAX (192U)
94 #define RPMESSAGE_CRC_SIZE (2U)
99 typedef struct RPMessage_Object_s {
121 void *data, uint16_t
dataLen, int32_t crcStatus,
122 uint16_t remoteCoreId, uint16_t remoteEndPt);
155 uint16_t remoteCoreId, uint16_t remoteEndPt,
const char *remoteServiceName);
265 void *controlEndPtCallbackArgs);
353 uint16_t remoteCoreId,
354 uint16_t remoteEndPt,
380 uint16_t *remoteCoreId, uint16_t *remoteEndPt, uint32_t timeout);
#define CSL_CORE_ID_MAX
Definition: cslr_soc_defines.h:120
int32_t RPMessage_recv(RPMessage_Object *obj, void *data, uint16_t *dataLen, uint16_t *remoteCoreId, uint16_t *remoteEndPt, uint32_t timeout)
Blocking API to wait till a message is received from any CPU at the specified local end point.
int32_t(* RPMessage_CrcHookFxn)(uint8_t *data, uint16_t dataLen, uint8_t crcSize, void *crc)
This is the CRC Hook function to be defined in application for CRC Calculation.
Definition: ipc_rpmsg.h:166
void(* RPMessage_ControlEndPtCallback)(void *arg, uint16_t remoteCoreId, uint16_t remoteEndPt, const char *remoteServiceName)
Callback that is invoked when a annoucement message is received on the control end point.
Definition: ipc_rpmsg.h:154
void RPMessage_unblock(RPMessage_Object *obj)
Unblocks RPMessage_recv, for the input object, if it is blocked waiting on messages and users want to...
Opaque RPMessage object used with the RPMessage APIs.
Definition: ipc_rpmsg.h:99
uint32_t vringSize
Definition: ipc_rpmsg.h:204
uint16_t localEndPt
Definition: ipc_rpmsg.h:183
int32_t RPMessage_construct(RPMessage_Object *obj, const RPMessage_CreateParams *createParams)
Create a RPMessage object to receive messages at a specified end-point.
int32_t RPMessage_waitForLinuxReady(uint32_t timeout)
Wait for linux side RPMessage to be ready.
RPMessage_RecvNotifyCallback recvNotifyCallback
Definition: ipc_rpmsg.h:186
uint16_t vringMsgSize
Definition: ipc_rpmsg.h:206
void RPMessage_deInit(void)
De-Initialize RPMessage module.
int32_t RPMessage_init(const RPMessage_Params *params)
Initialize RPMessage module.
uint16_t RPMessage_getLocalEndPt(const RPMessage_Object *obj)
Return local end point of a RPMessage_Object.
void(* RPMessage_RecvNotifyCallback)(RPMessage_Object *obj, void *arg)
Callback that is invoked when a message is received from any CPU at the specified local end point.
Definition: ipc_rpmsg.h:137
const RPMessage_ResourceTable * linuxResourceTable
Definition: ipc_rpmsg.h:207
RPMessage_RecvCallback recvCallback
Definition: ipc_rpmsg.h:184
void RPMessage_Params_init(RPMessage_Params *params)
Set default values to RPMessage_Params.
int32_t RPMessage_announce(uint16_t remoteProcId, uint16_t localEndPt, const char *name)
Announce a local end point at which a service is created to a remote core.
uint32_t dataLen
Definition: hsmclient.h:1
void * recvCallbackArgs
Definition: ipc_rpmsg.h:185
uint16_t linuxCoreId
Definition: ipc_rpmsg.h:212
void(* RPMessage_RecvCallback)(RPMessage_Object *obj, void *arg, void *data, uint16_t dataLen, int32_t crcStatus, uint16_t remoteCoreId, uint16_t remoteEndPt)
Callback that is invoked when a message is received from any CPU at the specified local end point.
Definition: ipc_rpmsg.h:120
void RPMessage_CreateParams_init(RPMessage_CreateParams *params)
Set default values to RPMessage_CreateParams.
uint8_t isCrcEnabled
Definition: ipc_rpmsg.h:213
uint16_t vringNumBuf
Definition: ipc_rpmsg.h:205
Parameters passed to RPMessage_init, these are generated via SysCfg.
Definition: ipc_rpmsg.h:201
RPMessage_CrcHookFxn crcHookFxn
Definition: ipc_rpmsg.h:214
Parameters passed to RPMessage_construct.
Definition: ipc_rpmsg.h:182
void * recvNotifyCallbackArgs
Definition: ipc_rpmsg.h:187
void RPMessage_controlEndPtCallback(RPMessage_ControlEndPtCallback controlEndPtCallback, void *controlEndPtCallbackArgs)
Callback to call when a control message is received on a control end point.
int32_t RPMessage_send(void *data, uint16_t dataLen, uint16_t remoteCoreId, uint16_t remoteEndPt, uint16_t localEndPt, uint32_t timeout)
Send a message to a remote core at a specified remote end point.
#define RPMESSAGE_OBJECT_SIZE_MAX
Size of RPMessage_Object.
Definition: ipc_rpmsg.h:89
void RPMessage_destruct(RPMessage_Object *obj)
Delete a previously created RPMessage object.