AnsweredAssumed Answered

KW41Z control bridge example serial Tx data generate

Question asked by JunTae Lee on Apr 21, 2020
Latest reply on Apr 22, 2020 by Mario Ignacio Castaneda Lopez

Hi

I am studying KW41Z control bridge code.

and I understand how the 'control bridge' receives and parses serial data.

What I want to know is the data generation process of 'nxp test tool 12'.

For example, I enter 11 and click 'Set CMSK' button.

'nxp test tool 12' generates TX DATA(01 02 10 21 02 10 02 14 2D 02 10 02 10 02 18 02 10 03  )

It means 

data type: 0x21 (E_SL_MSG_SET_CHANNELMASK)

data len : 4

data : [00 00 08 00]

   channel mask : 0x800 ( 1 << 11 )

 

I think I have to use 'vSL_WriteMessage(uint16 u16Type, uint16 u16Length, uint8 *pu8Data)' function to generate message.

but I don't know 'uint8 *pu8Data' structure.

 

Is there any code that 'nxp test tool 12' generates serial data?

or others?

 

thank you.

            

Outcomes