diff --git a/packages/ti/sdo/ipc/family/f28m35x/TransportCirc.xdc b/packages/ti/sdo/ipc/family/f28m35x/TransportCirc.xdc
index 57f02f339e63769f83b5080c580364821a66e6f3..4c71c404a4d0da831e306eff3234686019b1bf36 100644 (file)
*/
import ti.sysbios.knl.Swi;
+import ti.sdo.ipc.interfaces.IMessageQTransport;
import xdc.rov.ViewInfo;
* NOTE: Processor '0' corresponds to the M3 and '1' corresponds to the C28
*
* sharedAddr -> --------------------------- bytes
- * | entry0 (0) [Put] | 4
- * | entry1 (0) | 4
+ * | entry0 (0) [Put] | msgSize
+ * | entry1 (0) | msgSize
* | ... |
- * | entryN (0) | 4
+ * | entryN (0) | msgSize
* | |
* |-------------------------|
* | putWriteIndex (0) | 4
* | getReadIndex (1) | 4
* | |
* |-------------------------|
- * | entry0 (1) [Get] | 4
- * | entry1 (1) | 4
+ * | entry0 (1) [Get] | msgSize
+ * | entry1 (1) | msgSize
* | ... |
- * | entryN (1) | 4
+ * | entryN (1) | msgSize
* | |
* |-------------------------|
* | putWriteIndex (1) | 4
@InstanceFinalize
@InstanceInitError
-module TransportCirc inherits ti.sdo.ipc.interfaces.IMessageQTransport
+module TransportCirc inherits IMessageQTransport
{
/*! @_nodoc */
metaonly struct BasicView {
metaonly struct EventDataView {
UInt index;
String buffer;
- Ptr addr;
Ptr message;
}
*/
config Ptr writeAddr = null;
+ /*!
+ * ======== swiPriority ========
+ * The priority of the Transport Swi object created
+ */
+ config UInt swiPriority = 1;
+
internal:
/*! The max index set to (numMsgs - 1) */
*/
config UInt msgSize;
+ /*!
+ * ======== defaultErrFxn ========
+ * This is the default error function.
+ *
+ * This function is an empty function that does nothing.
+ *
+ * @param(reason) reason for error function
+ * @param(handle) handle of transport that had error
+ * @param(ptr) pointer to the message
+ * @param(arg) argument passed to error function
+ */
+ Void defaultErrFxn(IMessageQTransport.Reason reason,
+ IMessageQTransport.Handle handle, Ptr ptr, UArg arg);
+
/*!
* ======== swiFxn ========
* This function takes the messages from the transport ListMP and
UInt16 remoteProcId; /* dst proc id */
UInt16 priority; /* priority to register */
};
+
+ struct Module_State {
+ ErrFxn errFxn; /* error function */
+ };
}