AS1_SendBlock equivilant in full MQX

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AS1_SendBlock equivilant in full MQX

772 Views
MWMinor
Contributor V

I have developed an MQX-Lite application which uses AS1_SendBlock to transmit variable length commands to a display via the serial channel. The commands are a series of HEX values.

I would like use the dame display in a new MQX4.1 (or MQX4.2) project.

The message comprises a series of Bytes...

struct {
byte Command;
byte ObjectIndex;
byte Length;
byte Byte1;
byte Byte2;
byte Byte3;
byte Byte4;
byte Checksum;
} message;

and is then sent to the display using;

AS1_SendBlock((byte*)&message, sizeof(message), &Sent);

How can I achieve the same in my full MQX projects...?

Thanks

Ken

0 Kudos
Reply
1 Reply

596 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Ken:

You can use _msgq_send

pastedImage_1.png

There is a demo under the MQX installation folder.

Freescale\Freescale_MQX_4_2\mqx\examples\msg

Regards

Daniel

0 Kudos
Reply