27 মার্চ, 2025 থেকে, আমরা AOSP তৈরি করতে এবং অবদান রাখতে aosp-main
এর পরিবর্তে android-latest-release
ব্যবহার করার পরামর্শ দিচ্ছি। আরও তথ্যের জন্য, AOSP-তে পরিবর্তনগুলি দেখুন।
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
nfc_tag_device স্ট্রাকট রেফারেন্স
#include < nfc_tag.h >
nfc_tag.h ফাইলের 44 লাইনে সংজ্ঞা।
NFC ট্যাগ ডিভাইসের সাধারণ পদ্ধতি। এটি অবশ্যই nfc_tag_device_t-এর প্রথম সদস্য হতে হবে কারণ এই কাঠামোর ব্যবহারকারীরা nfc_tag_device_t পয়েন্টারে একটি hw_device_t কাস্ট করবে যেখানে এটি hw_device_t একটি nfc_tag_device_t উল্লেখ করে।
nfc_tag.h ফাইলের 51 লাইনে সংজ্ঞা।
ডেটা এলাকার মেমরির আকার প্রদান করে।
nfc_tag.h ফাইলের 80 লাইনে সংজ্ঞা।
NFC ট্যাগ শুরু করুন।
ড্রাইভার অবশ্যই:
- শুধুমাত্র পড়ার জন্য স্ট্যাটিক লক বাইট সেট করুন
- লেখার অ্যাক্সেস অক্ষম করতে সক্ষমতা ধারকটি কনফিগার করুন যেমন: 0xE1 0x10 <size> 0x0F
setContent() এ কোনো কল করার আগে এই ফাংশনটি একবার কল করা হয়।
সাফল্যে 0 ফেরত দিন বা ত্রুটির উপর -errno।
nfc_tag.h ফাইলের 65 নম্বর লাইনে সংজ্ঞা।
int(* setContent)(const struct nfc_tag_device *dev, const uint8_t *ডেটা, size_t len) |
NFC ট্যাগ বিষয়বস্তু সেট করুন।
ড্রাইভারকে ব্লক 4 এর বাইট 0 থেকে শুরু করে ট্যাগের ডেটা এলাকায় <data> লিখতে হবে এবং বাকি ডেটা এলাকায় শূন্য লিখতে হবে।
সাফল্যের উপর 0 বা ত্রুটির উপর -errno প্রদান করে।
nfc_tag.h ফাইলের 75 লাইনে সংজ্ঞা।
এই কাঠামোর জন্য ডকুমেন্টেশন নিম্নলিখিত ফাইল থেকে তৈরি করা হয়েছিল:
- hardware/libhardware/include/hardware/ nfc_tag.h
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Android Hardware Abstraction Layer: nfc_tag_device Struct Reference\n\nnfc_tag_device Struct Reference\n===============================\n\n[Data Fields](#pub-attribs) \nnfc_tag_device Struct Reference \n\n`\n#include \u003c\n`[nfc_tag.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/nfc_tag.h)`\n\u003e\n`\n\n|----------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| struct [hw_device_t](/reference/hal/structhw__device__t) | [common](/reference/hal/structnfc__tag__device#a86a0ca82dd3f02023e259b8b5e155dbe) |\n| ||\n| int(\\* | [init](/reference/hal/structnfc__tag__device#ae5eddc2663eab28a5880c1c3ece3c2cd) )(const struct [nfc_tag_device](/reference/hal/structnfc__tag__device) \\*dev) |\n| ||\n| int(\\* | [setContent](/reference/hal/structnfc__tag__device#a33335a1531a79b11436d1272d2ec696b) )(const struct [nfc_tag_device](/reference/hal/structnfc__tag__device) \\*dev, const uint8_t \\*data, size_t len) |\n| ||\n| int(\\* | [getMemorySize](/reference/hal/structnfc__tag__device#a93d3375699112cf6216b01be934f26d1) )(const struct [nfc_tag_device](/reference/hal/structnfc__tag__device) \\*dev) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[44](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/nfc_tag.h)\nof file\n[nfc_tag.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/nfc_tag.h)\n.\n\nField Documentation\n-------------------\n\n\n|-----------------------------------------------------------------|\n| struct [hw_device_t](/reference/hal/structhw__device__t) common |\n\n\nCommon methods of the NFC tag device. This\n*must*\nbe the first member of nfc_tag_device_t as users of this structure will cast a\n[hw_device_t](/reference/hal/structhw__device__t)\nto nfc_tag_device_t pointer in contexts where it's known the\n[hw_device_t](/reference/hal/structhw__device__t)\nreferences a nfc_tag_device_t.\n\n\nDefinition at line\n[51](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/nfc_tag.h)\nof file\n[nfc_tag.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/nfc_tag.h)\n.\n\n|---------------------------------------------------------------------------------------------------|\n| int(\\* getMemorySize)(const struct [nfc_tag_device](/reference/hal/structnfc__tag__device) \\*dev) |\n\n\nReturns the memory size of the data area.\n\n\nDefinition at line\n[80](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/nfc_tag.h)\nof file\n[nfc_tag.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/nfc_tag.h)\n.\n\n|------------------------------------------------------------------------------------------|\n| int(\\* init)(const struct [nfc_tag_device](/reference/hal/structnfc__tag__device) \\*dev) |\n\n\nInitialize the NFC tag.\n\n\nThe driver must:\n\n- Set the static lock bytes to read only\n- Configure the Capability Container to disable write acess eg: 0xE1 0x10 \\\u003csize\\\u003e 0x0F\n\n\nThis function is called once before any calls to\n[setContent()](/reference/hal/structnfc__tag__device#a33335a1531a79b11436d1272d2ec696b)\n.\n\n\nReturn 0 on success or -errno on error.\n\n\nDefinition at line\n[65](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/nfc_tag.h)\nof file\n[nfc_tag.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/nfc_tag.h)\n.\n\n|----------------------------------------------------------------------------------------------------------------------------------|\n| int(\\* setContent)(const struct [nfc_tag_device](/reference/hal/structnfc__tag__device) \\*dev, const uint8_t \\*data, size_t len) |\n\n\nSet the NFC tag content.\n\n\nThe driver must write \\\u003cdata\\\u003e in the data area of the tag starting at byte 0 of block 4 and zero the rest of the data area.\n\n\nReturns 0 on success or -errno on error.\n\n\nDefinition at line\n[75](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/nfc_tag.h)\nof file\n[nfc_tag.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/nfc_tag.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [nfc_tag.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/nfc_tag.h)"]]