Skip to content

Commit

Permalink
NFC: Document NFC targets sens_res field
Browse files Browse the repository at this point in the history
SENS_RES has no specific endiannes attached to it, the kernel ABI is the
following one: Byte 2 (As described by the NFC Forum Digital spec) is
the u16 most significant byte.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Samuel Ortiz committed Sep 25, 2013
1 parent 13292c9 commit b9c0c67
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/net/nfc/nfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ struct nfc_ops {
#define NFC_MAX_GT_LEN 48
#define NFC_ATR_RES_GT_OFFSET 15

/**
* struct nfc_target - NFC target descriptiom
*
* @sens_res: 2 bytes describing the target SENS_RES response, if the target
* is a type A one. The %sens_res most significant byte must be byte 2
* as described by the NFC Forum digital specification (i.e. the platform
* configuration one) while %sens_res least significant byte is byte 1.
*/
struct nfc_target {
u32 idx;
u32 supported_protocols;
Expand Down

0 comments on commit b9c0c67

Please sign in to comment.