NFC services: Difference between revisions
Narr the reg (talk | contribs) |
Narr the reg (talk | contribs) Add Mifare ReadBlock and WriteBlock structs |
||
Line 695: | Line 695: | ||
= TestWaveType = | = TestWaveType = | ||
This is u32 enum "nn::nfc::TestWaveType". | This is u32 enum "nn::nfc::TestWaveType". | ||
= MifareKey = | |||
This is a 0x10-byte struct. | |||
{| class="wikitable" border="1" | |||
|- | |||
! Offset || Size || Description | |||
|- | |||
| 0x0 || 0x1 || MifareCommand | |||
|- | |||
| 0x1 || 0x1 || Unknown | |||
|- | |||
| 0x2 || 0x6 || Padding | |||
|- | |||
| 0x8 || 0x6 || Key data | |||
|- | |||
| 0xE || 0x2 || Padding | |||
|} | |||
= MifareReadBlockData = | = MifareReadBlockData = | ||
This is "nn::nfc::MifareReadBlockData". This is a 0x18-byte struct. | This is "nn::nfc::MifareReadBlockData". This is a 0x18-byte struct. | ||
{| class="wikitable" border="1" | |||
|- | |||
! Offset || Size || Description | |||
|- | |||
| 0x0 || 0x10 || Data | |||
|- | |||
| 0x10 || 0x1 || Block index | |||
|- | |||
| 0x11 || 0x7 || Padding | |||
|} | |||
= MifareReadBlockParameter = | = MifareReadBlockParameter = | ||
This is "nn::nfc::MifareReadBlockParameter". This is a 0x18-byte struct. | This is "nn::nfc::MifareReadBlockParameter". This is a 0x18-byte struct. | ||
{| class="wikitable" border="1" | |||
|- | |||
! Offset || Size || Description | |||
|- | |||
| 0x0 || 0x1 || Block index | |||
|- | |||
| 0x1 || 0x7 || Padding | |||
|- | |||
| 0x8 || 0x10 || [[#MifareKey]] | |||
|} | |||
= MifareWriteBlockParameter = | = MifareWriteBlockParameter = | ||
This is "nn::nfc::MifareWriteBlockParameter". This is a 0x28-byte struct. | This is "nn::nfc::MifareWriteBlockParameter". This is a 0x28-byte struct. | ||
{| class="wikitable" border="1" | |||
|- | |||
! Offset || Size || Description | |||
|- | |||
| 0x0 || 0x10 || Data | |||
|- | |||
| 0x10 || 0x1 || Block index | |||
|- | |||
| 0x11 || 0x7 || Padding | |||
|- | |||
| 0x18 || 0x10 || [[#MifareKey]] | |||
|} | |||
= State = | = State = |