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 
551 
562 
574  MSG_ID_RESET = 0x03,
575 
588 
601 
619 
634 
652 
667 
684 
700 
713 
724 
734 
735 } MSG_ID_T;
736 
737 /* ------------------------------------------------------------------------- */
738 
746 void Msg_Init(void);
747 
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
Definition: msg.h:666
void Msg_SetResponseCb(pMsg_ResponseCb_t cb)
Definition: msg.h:633
Definition: msg.h:574
Definition: msg.h:550
Definition: msg.h:618
Definition: msg.h:712
Definition: msg.h:561
void Msg_Init(void)
Definition: msg.h:699
MSG_ID_T
Definition: msg.h:524
Definition: msg.h:723
Definition: msg.h:587
Definition: msg.h:651
Definition: msg.h:683
Definition: msg.h:733
bool(* pMsg_ResponseCb_t)(int responseLength, const uint8_t *pResponseData)
Definition: msg_response.h:217
void Msg_HandleCommand(int cmdLength, const uint8_t *pCmdData)
Definition: msg.h:600
void Msg_AddResponse(uint8_t msgId, int payloadLen, const uint8_t *pPayload)