RunXmittingSM If current state is Waiting2Send If ES_SEND_CMD received Set Command from event param Clear LOCResponse array Set next state as Sending5Bytes If current state is Sending5Bytes If EOT_EVENT received Read 5 bytes of data from SPI register Store last 4 bytes Initialize buffer timer If Timeout received Set next state as Waiting2Send During Sending5Bytes If Entry Event Send command byte followed by 4 buffer bytes via SPI