Linux NFC User Mode Stack
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 {
35 
36 /* Bit rates */
37 typedef enum
38 {
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;
67  /* Agc Differential Values With Open/Short RM */
69  unsigned short wAgcDifferentialWithOpen1;
73  unsigned short wAgcDifferentialWithOpen2;
77 
78 
85 int nfcFactory_testMode_open (void);
86 
93 void nfcFactory_testMode_close (void);
94 
95 
105 
114 
122 
129 
130 #endif
131 #ifdef __cplusplus
132 }
133 #endif
134 
135 #endif /* _LINUX_NFC_FACTORY_H_ */
136 
int nfcFactory_testMode_open(void)
It opens the physical connection with NFCC and creates required client thread for operation...
int nfcFactory_GetMwVersion()
Test function to return Mw version.
void nfcFactory_testMode_close(void)
This function close the NFCC interface and free all resources.
nfcFactory_PRBSTech_t
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...
Instance of Transaction structure.
unsigned short wAgcDifferentialWithOpenTolerance1
unsigned short wAgcDifferentialWithOpenTolerance2
nfcFactory_PRBSBitrate_t
unsigned short wAgcValuewithfixedNFCLDTolerance
int nfcFactory_AntennaSelfTest(nfcFactory_Antenna_St_Resp_t *phAntenna_St_Resp)
Test function to validate the Antenna's discrete components connection.
int nfcFactory_PrbsTestStop()
Test function stop RF generation for RF technology started by phNxpNciHal_PrbsTestStart.