Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers NFCDefinitions.h Source File

NFCDefinitions.h

00001 /* mbed Microcontroller Library
00002  * Copyright (c) 2018 ARM Limited
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef MBED_NFC_DEFINITIONS_H
00018 #define MBED_NFC_DEFINITIONS_H
00019 
00020 #include <stdint.h>
00021 #include <stdbool.h>
00022 
00023 #include "stack/nfc_errors.h"
00024 
00025 #include "acore/ac_buffer.h"
00026 
00027 namespace mbed {
00028 namespace nfc {
00029 struct nfc_rf_protocols_bitmask_t {
00030     bool initiator_t1t : 1;
00031     bool initiator_t2t : 1;
00032     bool initiator_t3t : 1;
00033     bool initiator_iso_dep : 1;
00034     bool initiator_nfc_dep : 1;
00035     bool initiator_t5t : 1;
00036 
00037     bool target_t1t : 1;
00038     bool target_t2t : 1;
00039     bool target_t3t : 1;
00040     bool target_iso_dep : 1;
00041     bool target_nfc_dep : 1;
00042     bool target_t5t : 1;
00043 };
00044 
00045 enum nfc_tag_type_t {
00046     nfc_tag_type_1,
00047     nfc_tag_type_2,
00048     nfc_tag_type_3,
00049     nfc_tag_type_4a,
00050     nfc_tag_type_4b,
00051     nfc_tag_type_5
00052 };
00053 
00054 } // namespace nfc
00055 } // namespace mbed
00056 
00057 #endif