NHS31xx SW API
msg.h
1
/*
2
* Copyright 2015-2020 NXP
3
* This software is owned or controlled by NXP and may only be used strictly
4
* in accordance with the applicable license terms. By expressly accepting
5
* such terms or by downloading, installing, activating and/or otherwise using
6
* the software, you are agreeing that you have read, and that you agree to
7
* comply with and are bound by, such license terms. If you do not agree to
8
* be bound by the applicable license terms, then you may not retain, install,
9
* activate or otherwise use the software.
10
*/
11
12
#ifndef __MSG_H_
13
#define __MSG_H_
14
15
#include <stdint.h>
16
#include <stdbool.h>
17
#include "chip.h"
18
#include "msg_dft.h"
19
#include "msg_cmd.h"
20
#include "msg_response.h"
21
517
/* ------------------------------------------------------------------------- */
518
524
typedef
enum
MSG_ID {
525
550
MSG_ID_GETRESPONSE
= 0x01,
551
561
MSG_ID_GETVERSION
= 0x02,
562
574
MSG_ID_RESET
= 0x03,
575
587
MSG_ID_READREGISTER
= 0x04,
588
600
MSG_ID_WRITEREGISTER
= 0x05,
601
618
MSG_ID_READMEMORY
= 0x06,
619
633
MSG_ID_WRITEMEMORY
= 0x07,
634
651
MSG_ID_PREPAREDEBUG
= 0x08,
652
666
MSG_ID_GETUID
= 0x09,
667
683
MSG_ID_GETNFCUID
= 0x0a,
684
699
MSG_ID_CHECKBATTERY
= 0x0b,
700
712
MSG_ID_GETCALIBRATIONTIMESTAMP
= 0x0c,
713
723
MSG_ID_GETDIAGDATA
= 0x3E,
724
733
MSG_ID_LASTRESERVED
= 0x3F
734
735
}
MSG_ID_T
;
736
737
/* ------------------------------------------------------------------------- */
738
746
void
Msg_Init
(
void
);
747
755
void
Msg_SetResponseCb
(
pMsg_ResponseCb_t
cb);
756
769
void
Msg_AddResponse
(uint8_t msgId,
int
payloadLen,
const
uint8_t* pPayload);
770
781
void
Msg_HandleCommand
(
int
cmdLength,
const
uint8_t* pCmdData);
782
785
#endif
MSG_ID_GETUID
Definition:
msg.h:666
Msg_SetResponseCb
void Msg_SetResponseCb(pMsg_ResponseCb_t cb)
MSG_ID_WRITEMEMORY
Definition:
msg.h:633
MSG_ID_RESET
Definition:
msg.h:574
MSG_ID_GETRESPONSE
Definition:
msg.h:550
MSG_ID_READMEMORY
Definition:
msg.h:618
MSG_ID_GETCALIBRATIONTIMESTAMP
Definition:
msg.h:712
MSG_ID_GETVERSION
Definition:
msg.h:561
Msg_Init
void Msg_Init(void)
MSG_ID_CHECKBATTERY
Definition:
msg.h:699
MSG_ID_T
MSG_ID_T
Definition:
msg.h:524
MSG_ID_GETDIAGDATA
Definition:
msg.h:723
MSG_ID_READREGISTER
Definition:
msg.h:587
MSG_ID_PREPAREDEBUG
Definition:
msg.h:651
MSG_ID_GETNFCUID
Definition:
msg.h:683
MSG_ID_LASTRESERVED
Definition:
msg.h:733
pMsg_ResponseCb_t
bool(* pMsg_ResponseCb_t)(int responseLength, const uint8_t *pResponseData)
Definition:
msg_response.h:217
Msg_HandleCommand
void Msg_HandleCommand(int cmdLength, const uint8_t *pCmdData)
MSG_ID_WRITEREGISTER
Definition:
msg.h:600
Msg_AddResponse
void Msg_AddResponse(uint8_t msgId, int payloadLen, const uint8_t *pPayload)
sw
nss
mods
msg
msg.h
Generated on Tue Oct 20 2020 08:17:10 for NHS31xx SW API by
1.8.14