Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

porting mfrc522 mbed library to keil

Status
Not open for further replies.

dizgah

Member level 5
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 :pinName, 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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top