Mistake on this page?
Report an issue in GitHub or email us
protocols.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013-2018, ARM Limited, All Rights Reserved
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License"); you may
6  * 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, WITHOUT
13  * 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  * \file protocols.h
19  * \copyright Copyright (c) ARM Ltd 2013
20  * \author Donatien Garnier
21  * \details List of RF protocols
22  */
23 
24 /** \addtogroup Transceiver
25  * @{
26  * \name Protocols and RF configuration
27  * @{
28  */
29 
30 #ifndef PROTOCOLS_H_
31 #define PROTOCOLS_H_
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 #include "stack/nfc_common.h"
38 
39 typedef enum __RF_PROTOCOL {
40  __RF_PROTOCOL_UNKNOWN = 0,
41  //Reader
42  RF_PROTOCOL_ISO_14443_A_READER,
43  RF_PROTOCOL_ISO_14443_B_READER,
44  RF_PROTOCOL_INNOVATRON_READER,
45  RF_PROTOCOL_ISO_15693_READER,
46  RF_PROTOCOL_FELICA_READER,
47  //... add other protocols here
48  RF_PROTOCOL_ISO_14443_A_TARGET,
49  RF_PROTOCOL_ISO_14443_B_TARGET,
50  RF_PROTOCOL_INNOVATRON_TARGET,
51  RF_PROTOCOL_ISO_15693_TARGET,
52  RF_PROTOCOL_FELICA_TARGET,
53  RF_PROTOCOL_ISO_DEP_TARGET, //ISO 14443-4 transport protocol
54  RF_PROTOCOL_NFC_DEP_TARGET, //NFC-IP 1 transport protocol
55  //... add other protocols here
56 
57 } RF_PROTOCOL;
58 
59 #define RF_PROTOCOL_IS_TARGET(x) ((x)>=RF_PROTOCOL_ISO_14443_A_TARGET)
60 #define RF_PROTOCOL_IS_READER(x) (!RF_PROTOCOL_IS_TARGET(x))
61 
62 typedef uint32_t RF_OPTION;
63 //These options can be ORed
64 #define RF_OPTION_NONE 0x00
65 #define RF_OPTION_COMPUTE_CRC 0x01
66 #define RF_OPTION_COMPUTE_PARITY 0x02
67 #define RF_OPTION_CHECK_CRC 0x04
68 #define RF_OPTION_CHECK_PARITY 0x08
69 #define RF_OPTION_CLOSE 0x10 //Last frame
70 
71 typedef enum __RF_BITRATE {
72  RF_BITRATE_106K = 0x00,
73  RF_BITRATE_212K = 0x01,
74  RF_BITRATE_424K = 0x02,
75  RF_BITRATE_848K = 0x03,
76 
77 } RF_BITRATE;
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif /* PROTOCOLS_H_ */
84 
85 /**
86  * @}
87  * @}
88  * */
89 
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.