porting mfrc522 mbed library to keil

Status
Not open for further replies.

dizgah

Member level 5
Joined
Nov 8, 2009
Messages
91
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
iran-8par
Visit site
Activity points
2,049
hi every body

i want to use mfrc522 mbed library in keil compiler & dont want to export codes directrly but i have some problem with these codes

MFRC522.h

Code:
class MFRC522 {
public:
.........
.........
.........
  /**
  * MFRC522 constructor
  *
  * @param mosi  SPI MOSI pin
  * @param miso  SPI MISO pin
  * @param sclk  SPI SCLK pin
  * @param cs    SPI CS pin
  * @param reset Reset pin
  */
  MFRC522(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName reset);
 
  /**
  * MFRC522 destructor
  */
  ~MFRC522();
 
 
private:
  SPI              m_SPI;
  DigitalOut       m_CS;
  DigitalOut       m_RESET;
 
};
i know about classes & have some experiences in c++ compiler show errors about unknown type names inName, SPI & DigitalOut perhaps <<code>> DigitalOut m_CS;<</code>> defines chip select pin as output & m_RESET is same but whats meaning of <<code>> DigitalOut m_RESET;<</code>> defines chip select pin as output & m_RESET is same but whats meaning of <<code>> DigitalOut m_RESET;<</code>> ? what does it work ? & whats function & type of PinName? what dose it do? whats differences between PinName cs & DigitalOut m_CS;

tnaks every body
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…