Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 1 month ago.
little discription about these MFRC522 codes
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
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
Assigned to 11 years, 1 month ago.
This means that the question has been accepted and is being worked on.