NHS31xx SW API

Detailed Description

The Therapy Adherence 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 MSGHANDLER_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 Therapy Adherence demo application are described by 'tadherence' app.spec. messages.
  5. It is also responsible for sending and receiving the data to the underlying physical communication channel (NFC interface).

Modules

 'tadherence' app.spec. messages
 

Functions

void MsgHandler_Init (void)
 
void MsgHandler_NFCCommunication (void)
 

Function Documentation

◆ MsgHandler_Init()

void MsgHandler_Init ( void  )

Makes sure the messaging mechanism is initialized. It also initializes the NFC tag with a getVersion response.

Precondition
NFC should be initialized
Postcondition
Ready to receive commands from NFC.

◆ MsgHandler_NFCCommunication()

void MsgHandler_NFCCommunication ( void  )

Function performing NFC communication, this function is blocking until the host stops sending commands (host timeout).