pn532hsu.h 672 B

12345678910111213141516171819
  1. /*
  2. * This program is free software; you can redistribute it and/or
  3. * modify it under the terms of the GNU General Public License
  4. * as published by the Free Software Foundation; either version 2
  5. * of the License, or (at your option) any later version.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. * Author: hakanai
  12. */
  13. #pragma once
  14. int pn532_init();
  15. int pn532_read(uint8_t *buf, int len);
  16. int pn532_decode_card(uint8_t *buf, int buf_len, uint8_t *out);