AS1_SendBlock equivilant in full MQX

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

AS1_SendBlock equivilant in full MQX

772 次查看
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 项奖励
回复
1 回复

596 次查看
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 项奖励
回复