Download M4K1553MA Software Tools Programmer`s Reference
Transcript
Chapter 5 Bus Controller [BC] Functions Set_Interrupt_On_Msg_MA causes an interrupt to be generated when a chosen message is sent. Description Set_Interrupt_On_Msg_MA Syntax Set_Interrupt_On_Msg_MA (int handle, int frameid, int msgentry, int enable) Input Parameters handle The handle designated by Init_Module_MA frameid frame_id returned from a call to Create_Frame_MA msgentry enable Output Parameters none Return Values EXC_MA_ERROR _BAD_HANDLE Message number within the frame EXC_MA_ENABLE Generate an interrupt [0001 H] EXC_MA_DISABLE Do not generate an interrupt [0000 H] If an invalid handle was specified; should be value returned by Init_Module_MA page 5 - 18 EXC_MA_ERROR_ BAD_FRAME_ID If undefined frame id EXC_MA_ERROR _BAD_FRM_MSGENTRY If invalid index of message in frame EXC_MA_ERROR_ WRONG_MODE If not in BC mode EXC_MA_STATUS_OK No errors Excalibur Systems