NHS31xx SW API

Detailed Description

The Temperature Logger Message Handler is responsible for handling the communication with the host (tag reader/smartphone).

  1. It makes use of:
  2. The supported command ID's are described by APP_MSG_ID_T enum
  3. The specifics of the protocol are described in the documentation section of the msg: Message Handler module
  4. The content of the commands and responses defined by the Temperature Logger demo application are described by 'tlogger' app.spec. messages.
  5. It is also responsible for sending and receiving the data to the underlying physical communication channel (NFC interface).

Modules

 'tlogger' app.spec. messages
 

Functions

void AppMsgInit (bool reuseKeys)
 
void AppMsgHandleCommand (int cmdLength, const uint8_t *cmdData)
 

Function Documentation

◆ AppMsgInit()

void AppMsgInit ( bool  reuseKeys)

Initializes the messaging part of the application; initializes the msg mod; Ensures an initial ndef message is loaded in the NFC shared memory.

Parameters
reuseKeysTrue when previously set keys - if any - are to be reused; false otherwise.

◆ AppMsgHandleCommand()

void AppMsgHandleCommand ( int  cmdLength,
const uint8_t *  cmdData 
)

Wrapper round Msg_HandleCommand

Precondition
AppMsgInit must have been called beforehand
Parameters
cmdLength: The size in bytes in cmdData
cmdData: Pointer to the array containing the raw command bytes.