コード例 #1
0
ファイル: nfc.cs プロジェクト: rinscr3003/Libnfc-CSharp
        /* public static string converter functions */
        public static string str_nfc_modulation_type(nfc_modulation_type nmt)
        {
            switch (nmt)
            {
            case nfc_modulation_type.NMT_ISO14443A:
                return("ISO/IEC 14443A");

            case nfc_modulation_type.NMT_ISO14443B:
                return("ISO/IEC 14443-4B");

            case nfc_modulation_type.NMT_ISO14443BI:
                return("ISO/IEC 14443-4B'");

            case nfc_modulation_type.NMT_ISO14443B2CT:
                return("ISO/IEC 14443-2B ASK CTx");

            case nfc_modulation_type.NMT_ISO14443B2SR:
                return("ISO/IEC 14443-2B ST SRx");

            case nfc_modulation_type.NMT_FELICA:
                return("FeliCa");

            case nfc_modulation_type.NMT_JEWEL:
                return("Innovision Jewel");

            case nfc_modulation_type.NMT_DEP:
                return("D.E.P.");

            default:
                return("Unknown modulation");
            }
        }
コード例 #2
0
ファイル: Functions.cs プロジェクト: LuckyOpenU/NFCTest
 public static extern int nfc_device_get_supported_baud_rate(IntPtr pnd, nfc_mode mode, nfc_modulation_type nmt, ref IntPtr supported_br);
コード例 #3
0
ファイル: Functions.cs プロジェクト: LuckyOpenU/NFCTest
 public static extern string str_nfc_modulation_type(nfc_modulation_type nmt);
コード例 #4
0
ファイル: Functions.cs プロジェクト: Kebechet/sharp-free-fare
 public static extern string str_nfc_modulation_type(nfc_modulation_type nmt);
コード例 #5
0
ファイル: Functions.cs プロジェクト: Kebechet/sharp-free-fare
 public static extern int nfc_device_get_supported_baud_rate(IntPtr pnd, nfc_mode mode, nfc_modulation_type nmt, ref IntPtr supported_br);
コード例 #6
0
ファイル: nfc.cs プロジェクト: rinscr3003/Libnfc-CSharp
 /** @ingroup data
  * @brief Get supported baud rates.
  * @return Returns 0 on success, otherwise returns libnfc's error code (negative value)
  * @param pnd \a nfc_device struct pointer that represent currently used device
  * @param nmt \a nfc_modulation_type.
  * @param supported_br pointer of \a nfc_baud_rate array.
  *
  */
 public static int nfc_device_get_supported_baud_rate(nfc_device pnd, nfc_modulation_type nmt, out nfc_baud_rate[] supported_br)
 {
     pnd.last_error = 0;
     return(pnd.driver.get_supported_baud_rate(pnd, nmt, out supported_br));
 }