dizgah
Member level 5
- Joined
- Nov 8, 2009
- Messages
- 91
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- iran-8par
- 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
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
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;
};
tnaks every body