| Linux NFC User Mode Stack

- Main Page
- Classes
- Files

- File List
- File Members

linux_nfc_factory_api.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright (C) 2015 NXP Semiconductors
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License")
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 ******************************************************************************/
18
19 #ifndef _LINUX_NFC_FACTORY_H_
20 #define _LINUX_NFC_FACTORY_H_
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 #ifdef NXP_HW_SELF_TEST
27
28 /* RF Technology */
29 typedef enum
30 {
31 NFC_FACTORY_RF_TECHNOLOGY_A = 0,
32 NFC_FACTORY_RF_TECHNOLOGY_B,
33 NFC_FACTORY_RF_TECHNOLOGY_F,
34 } nfcFactory_PRBSTech_t;
35
36 /* Bit rates */
37 typedef enum
38 {
39 NFC_FACTORY_BIT_RATE_106 = 0,
40 NFC_FACTORY_BIT_RATE_212,
41 NFC_FACTORY_BIT_RATE_424,
42 NFC_FACTORY_BIT_RATE_848,
43 } nfcFactory_PRBSBitrate_t;
47 typedef struct
48 {
50 unsigned short wTxdoRawValue;
52 unsigned short wTxdoMeasuredRangeMin;
54 unsigned short wTxdoMeasuredRangeMax;
56 unsigned short wTxdoMeasuredTolerance;
57 /* Agc Values */
59 unsigned short wAgcValue;
61 unsigned short wAgcValueTolerance;
62 /* Agc value with NFCLD */
64 unsigned short wAgcValuewithfixedNFCLD;
66 unsigned short wAgcValuewithfixedNFCLDTolerance;
67 /* Agc Differential Values With Open/Short RM */
69 unsigned short wAgcDifferentialWithOpen1;
71 unsigned short wAgcDifferentialWithOpenTolerance1;
73 unsigned short wAgcDifferentialWithOpen2;
75 unsigned short wAgcDifferentialWithOpenTolerance2;
76 }nfcFactory_Antenna_St_Resp_t;
77
78
85 int nfcFactory_testMode_open (void);
86
93 void nfcFactory_testMode_close (void);
94
95
104 int nfcFactory_PrbsTestStart (nfcFactory_PRBSTech_t tech, nfcFactory_PRBSBitrate_t bitrate);
105
113 int nfcFactory_PrbsTestStop ();
114
121 int nfcFactory_AntennaSelfTest(nfcFactory_Antenna_St_Resp_t * phAntenna_St_Resp );
122
128 int nfcFactory_GetMwVersion ();
129
130 #endif
131 #ifdef __cplusplus
132 }
133 #endif
134
135 #endif /* _LINUX_NFC_FACTORY_H_ */
136
nfcFactory_Antenna_St_Resp_t::wTxdoMeasuredRangeMax
unsigned short wTxdoMeasuredRangeMax
Definition: linux_nfc_factory_api.h:54
nfcFactory_Antenna_St_Resp_t::wAgcValuewithfixedNFCLD
unsigned short wAgcValuewithfixedNFCLD
Definition: linux_nfc_factory_api.h:64
nfcFactory_Antenna_St_Resp_t::wAgcDifferentialWithOpen1
unsigned short wAgcDifferentialWithOpen1
Definition: linux_nfc_factory_api.h:69
nfcFactory_Antenna_St_Resp_t::wAgcDifferentialWithOpen2
unsigned short wAgcDifferentialWithOpen2
Definition: linux_nfc_factory_api.h:73
nfcFactory_testMode_open
int nfcFactory_testMode_open(void)
It opens the physical connection with NFCC and creates required client thread for operation...
nfcFactory_Antenna_St_Resp_t::wAgcValue
unsigned short wAgcValue
Definition: linux_nfc_factory_api.h:59
nfcFactory_Antenna_St_Resp_t::wTxdoMeasuredTolerance
unsigned short wTxdoMeasuredTolerance
Definition: linux_nfc_factory_api.h:56
nfcFactory_GetMwVersion
int nfcFactory_GetMwVersion()
Test function to return Mw version.
nfcFactory_testMode_close
void nfcFactory_testMode_close(void)
This function close the NFCC interface and free all resources.
NFC_FACTORY_RF_TECHNOLOGY_B
Definition: linux_nfc_factory_api.h:32
nfcFactory_PRBSTech_t
nfcFactory_PRBSTech_t
Definition: linux_nfc_factory_api.h:29
NFC_FACTORY_BIT_RATE_848
Definition: linux_nfc_factory_api.h:42
NFC_FACTORY_BIT_RATE_212
Definition: linux_nfc_factory_api.h:40
nfcFactory_Antenna_St_Resp_t::wAgcValueTolerance
unsigned short wAgcValueTolerance
Definition: linux_nfc_factory_api.h:61
nfcFactory_PrbsTestStart
int nfcFactory_PrbsTestStart(nfcFactory_PRBSTech_t tech, nfcFactory_PRBSBitrate_t bitrate)
Test function start RF generation for RF technology and bit rate. RF technology and bit rate are sent...
nfcFactory_Antenna_St_Resp_t
Instance of Transaction structure.
Definition: linux_nfc_factory_api.h:47
NFC_FACTORY_RF_TECHNOLOGY_A
Definition: linux_nfc_factory_api.h:31
nfcFactory_Antenna_St_Resp_t::wTxdoRawValue
unsigned short wTxdoRawValue
Definition: linux_nfc_factory_api.h:50
NFC_FACTORY_BIT_RATE_424
Definition: linux_nfc_factory_api.h:41
nfcFactory_Antenna_St_Resp_t::wTxdoMeasuredRangeMin
unsigned short wTxdoMeasuredRangeMin
Definition: linux_nfc_factory_api.h:52
NFC_FACTORY_BIT_RATE_106
Definition: linux_nfc_factory_api.h:39
nfcFactory_Antenna_St_Resp_t::wAgcDifferentialWithOpenTolerance1
unsigned short wAgcDifferentialWithOpenTolerance1
Definition: linux_nfc_factory_api.h:71
nfcFactory_Antenna_St_Resp_t::wAgcDifferentialWithOpenTolerance2
unsigned short wAgcDifferentialWithOpenTolerance2
Definition: linux_nfc_factory_api.h:75
nfcFactory_PRBSBitrate_t
nfcFactory_PRBSBitrate_t
Definition: linux_nfc_factory_api.h:37
nfcFactory_Antenna_St_Resp_t::wAgcValuewithfixedNFCLDTolerance
unsigned short wAgcValuewithfixedNFCLDTolerance
Definition: linux_nfc_factory_api.h:66
nfcFactory_AntennaSelfTest
int nfcFactory_AntennaSelfTest(nfcFactory_Antenna_St_Resp_t *phAntenna_St_Resp)
Test function to validate the Antenna's discrete components connection.
NFC_FACTORY_RF_TECHNOLOGY_F
Definition: linux_nfc_factory_api.h:33
nfcFactory_PrbsTestStop
int nfcFactory_PrbsTestStop()
Test function stop RF generation for RF technology started by phNxpNciHal_PrbsTestStart.