/* This function fills in the function pointer into the cell in the state machine.  */
void StateMachineSetAction(struct rt_state_machine *S, unsigned long St, unsigned long Msg, IN STATE_MACHINE_FUNC Func)
/* This function fills in the function pointer into the cell in the state machine.  */
void StateMachineSetAction(struct rt_state_machine *S, unsigned long St, unsigned long Msg, IN STATE_MACHINE_FUNC Func)
{
	unsigned long MsgIdx;
	MsgIdx = Msg - S->Base;
	if (St < S->NrState && MsgIdx < S->NrMsg) {
		S->TransFunc[St * S->NrMsg + MsgIdx] = Func;
	}
}