269 | 269 |
return szDeviceFound;
|
270 | 270 |
}
|
271 | 271 |
|
272 | |
/** @ingroup dev
|
273 | |
* @brief Get supported modulations.
|
274 | |
* @return Returns 0 on success, otherwise returns libnfc's error code (negative value)
|
275 | |
* @param pnd \a nfc_device struct pointer that represent currently used device
|
276 | |
* @param mode \a nfc_mode.
|
277 | |
* @param supported_mt pointer of \a nfc_modulation_type array.
|
278 | |
*
|
279 | |
*/
|
280 | |
int
|
281 | |
nfc_device_get_supported_modulation (nfc_device *pnd, const nfc_mode mode, nfc_modulation_type **supported_mt)
|
282 | |
{
|
283 | |
HAL (get_supported_modulation, pnd, mode, supported_mt);
|
284 | |
}
|
285 | |
|
286 | |
/** @ingroup dev
|
287 | |
* @brief Get supported baud rates.
|
288 | |
* @return Returns 0 on success, otherwise returns libnfc's error code (negative value)
|
289 | |
* @param pnd \a nfc_device struct pointer that represent currently used device
|
290 | |
* @param nmt \a nfc_modulation_type.
|
291 | |
* @param supported_br pointer of \a nfc_baud_rate array.
|
292 | |
*
|
293 | |
*/
|
294 | |
int
|
295 | |
nfc_device_get_supported_baud_rate (nfc_device *pnd, const nfc_modulation_type nmt, nfc_baud_rate **supported_br)
|
296 | |
{
|
297 | |
HAL (get_supported_baud_rate, pnd, nmt, supported_br);
|
298 | |
}
|
299 | |
|
300 | 272 |
/** @ingroup properties
|
301 | 273 |
* @brief Set a device's integer-property value
|
302 | 274 |
* @return Returns 0 on success, otherwise returns libnfc's error code (negative value)
|
|
1016 | 988 |
return pnd->connstring;
|
1017 | 989 |
}
|
1018 | 990 |
|
|
991 |
/** @ingroup data
|
|
992 |
* @brief Get supported modulations.
|
|
993 |
* @return Returns 0 on success, otherwise returns libnfc's error code (negative value)
|
|
994 |
* @param pnd \a nfc_device struct pointer that represent currently used device
|
|
995 |
* @param mode \a nfc_mode.
|
|
996 |
* @param supported_mt pointer of \a nfc_modulation_type array.
|
|
997 |
*
|
|
998 |
*/
|
|
999 |
int
|
|
1000 |
nfc_device_get_supported_modulation (nfc_device *pnd, const nfc_mode mode, const nfc_modulation_type **const supported_mt)
|
|
1001 |
{
|
|
1002 |
HAL (get_supported_modulation, pnd, mode, supported_mt);
|
|
1003 |
}
|
|
1004 |
|
|
1005 |
/** @ingroup data
|
|
1006 |
* @brief Get supported baud rates.
|
|
1007 |
* @return Returns 0 on success, otherwise returns libnfc's error code (negative value)
|
|
1008 |
* @param pnd \a nfc_device struct pointer that represent currently used device
|
|
1009 |
* @param nmt \a nfc_modulation_type.
|
|
1010 |
* @param supported_br pointer of \a nfc_baud_rate array.
|
|
1011 |
*
|
|
1012 |
*/
|
|
1013 |
int
|
|
1014 |
nfc_device_get_supported_baud_rate (nfc_device *pnd, const nfc_modulation_type nmt, const nfc_baud_rate **const supported_br)
|
|
1015 |
{
|
|
1016 |
HAL (get_supported_baud_rate, pnd, nmt, supported_br);
|
|
1017 |
}
|
|
1018 |
|
1019 | 1019 |
/* Misc. functions */
|
1020 | 1020 |
|
1021 | 1021 |
/** @ingroup misc
|