NHS31xx SW API
ucode.h
1 /*
2  * Copyright 2016-2019 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 __UCODE_H_
13 #define __UCODE_H_
14 
60 #include <stdbool.h>
61 #include "board.h"
62 #include "ucode_dft.h"
63 
64 /* ------------------------------------------------------------------------- */
65 
70 #define UCODE_USER_MEMORY_SIZE ((3328U /* bits */) / 8U)
71 
79 #define UCODE_VERSION 'T'
80 
81 /* ------------------------------------------------------------------------- */
82 
90 void Ucode_Init(void);
91 
100 bool Ucode_Reset(void);
101 
108 void Ucode_DeInit(void);
109 
110 /* ------------------------------------------------------------------------- */
111 
117 bool Ucode_SetNfcUid(void);
118 
125 bool Ucode_SetMark(unsigned int events);
126 
127 /* ------------------------------------------------------------------------- */
128 
139 bool Ucode_WriteData(unsigned int offset, const uint8_t * data, unsigned int len);
140 
151 bool Ucode_ReadData(unsigned int offset, uint8_t * data, unsigned int len);
152 
153 #endif
bool Ucode_Reset(void)
void Ucode_Init(void)
bool Ucode_ReadData(unsigned int offset, uint8_t *data, unsigned int len)
bool Ucode_SetNfcUid(void)
bool Ucode_SetMark(unsigned int events)
void Ucode_DeInit(void)
bool Ucode_WriteData(unsigned int offset, const uint8_t *data, unsigned int len)