예제 #1
0
 public static extern int nfc_device_set_property_int(IntPtr pnd, nfc_property property, int value);
예제 #2
0
 public static extern int nfc_device_set_property_bool(IntPtr pnd, nfc_property property, bool bEnable);
예제 #3
0
 public static extern int nfc_device_set_property_bool(IntPtr pnd, nfc_property property, bool bEnable);
예제 #4
0
 public static extern int nfc_device_set_property_int(IntPtr pnd, nfc_property property, int value);
예제 #5
0
 /** @ingroup properties
  * @brief Set a device's boolean-property value
  * @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 property \a nfc_property which will be set
  * @param bEnable boolean to activate/disactivate the property
  *
  * Configures parameters and registers that control for example timing,
  * modulation, frame and error handling.  There are different categories for
  * configuring the \e PN53X chip features (handle, activate, infinite and
  * accept).
  */
 public static int nfc_device_set_property_bool(nfc_device pnd, nfc_property property, bool bEnable)
 {
     pnd.last_error = 0;
     return(pnd.driver.device_set_property_bool(pnd, property, bEnable));
 }
예제 #6
0
        /* Properties accessors */

        /** @ingroup properties
         * @brief Set a device's integer-property value
         * @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 property \a nfc_property which will be set
         * @param value integer value
         *
         * Sets integer property.
         *
         * @see nfc_property enum values
         */
        public static int nfc_device_set_property_int(nfc_device pnd, nfc_property property, int value)
        {
            pnd.last_error = 0;
            return(pnd.driver.device_set_property_int(pnd, property, value));
        }