Share
The following example shows you how to receive a command sent to RT 5, SA 3 and wrap it to RT 5 SA 12. This is done by using the default buffers. These are selected by programming BusTools_RT_CbufWrite with a buffer count of 0. This wraps the data into the transmit buffer. You can use this method for all RT and subaddress combinations. See the following example:
/********************************************************************** * Output RT control buffers * Enable or disable all word counts and mode codes as specified by * the caller's arguments. **********************************************************************/ #define RT_ADDR 5 cbuf.legal_wordcount = 0xffffffff; // legalize all word counts for ( tr = 0; tr