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 which is C++.

  You'd have to replace the Arduino SPI calls
( with BBB SPI library calls