Interface RC522 RFID with BBB using SPI

Hi, Can any one provide a C code for Interfacing a RC522 RFID reader to the Beaglebone black wireless using a SPI bus.

Well, you could perhaps start with the Arduino library
https://github.com/miguelbalboa/rfid which is C++.

  You'd have to replace the Arduino SPI calls
(https://www.arduino.cc/en/reference/SPI) with BBB SPI library calls
(https://www.element14.com/community/community/designcenter/single-board-computers/next-genbeaglebone/blog/2019/08/15/beaglebone-black-bbb-io-gpio-spi-and-i2c-library-for-c-2019-edition).