X_NUCLEO_NFC02A1 library for M24LR
Dependencies: ST_INTERFACES
Dependents: HelloWorld_NFC02A1_mbedOS HelloWorld_NFC02A1laatste HelloWorld_NFC02A1
Fork of X_NUCLEO_NFC02A1 by
XNucleoNFC02A1 Class Reference
Singleton class that controls all the electronics inside the X_NUCLEO_NFC02A1 expansion board. More...
#include <XNucleoNFC02A1.h>
Public Member Functions | |
DigitalOut & | get_led1 () |
DigitalOut & | get_led2 () |
DigitalOut & | get_led3 () |
M24LR & | get_M24LR () |
Static Public Member Functions | |
static XNucleoNFC02A1 * | instance (DevI2C &devI2C, const PinName &gpoName=DEFAULT_GPO_PIN, const PinName &RFDisableName=DEFAULT_RF_DISABLE_PIN, const PinName &led1Name=DEFAULT_LED1_PIN, const PinName &led2Name=DEFAULT_LED2_PIN, const PinName &led3Name=DEFAULT_LED3_PIN) |
Create or return an instance of X_NUCLEO_NFC02A1. | |
Static Public Attributes | |
static const PinName | DEFAULT_SDA_PIN = D14 |
Default pin used for the M24LR SDA signal. | |
static const PinName | DEFAULT_SDL_PIN = D15 |
Default pin used for the M24LR SDL signal. | |
static const PinName | DEFAULT_GPO_PIN = D12 |
Default pin used for the M24LR GPO signal. | |
static const PinName | DEFAULT_RF_DISABLE_PIN = D11 |
Default pin used for M24LR RF_DISABLE signal. | |
static const PinName | DEFAULT_LED1_PIN = D5 |
Default pin to control the led 1. | |
static const PinName | DEFAULT_LED2_PIN = D4 |
Default pin to control the led 2. | |
static const PinName | DEFAULT_LED3_PIN = D2 |
Default pin to control the led 3. |
Detailed Description
Singleton class that controls all the electronics inside the X_NUCLEO_NFC02A1 expansion board.
Definition at line 50 of file XNucleoNFC02A1.h.
Member Function Documentation
DigitalOut& get_led1 | ( | ) |
- Returns:
- board led1.
Definition at line 112 of file XNucleoNFC02A1.h.
DigitalOut& get_led2 | ( | ) |
- Returns:
- board led2.
Definition at line 119 of file XNucleoNFC02A1.h.
DigitalOut& get_led3 | ( | ) |
- Returns:
- board led3.
Definition at line 126 of file XNucleoNFC02A1.h.
M24LR& get_M24LR | ( | ) |
- Returns:
- NFC Chip.
Definition at line 133 of file XNucleoNFC02A1.h.
XNucleoNFC02A1 * instance | ( | DevI2C & | devI2C, |
const PinName & | gpoName = DEFAULT_GPO_PIN , |
||
const PinName & | RFDisableName = DEFAULT_RF_DISABLE_PIN , |
||
const PinName & | led1Name = DEFAULT_LED1_PIN , |
||
const PinName & | led2Name = DEFAULT_LED2_PIN , |
||
const PinName & | led3Name = DEFAULT_LED3_PIN |
||
) | [static] |
Create or return an instance of X_NUCLEO_NFC02A1.
- Parameters:
-
devI2C I2C channel used to communicate with the board. eventCallback Function that will be called when the gpo pin status change. gpoName Name of the gpio pin of the M24LR chip. RFDisableName Pin that controls the rf antenna status. led1Name Pin to control the led1 status. led2Name Pin to control the led1 status. led3Name Pin to control the led1 status.
Definition at line 54 of file XNucleoNFC02A1.cpp.
Field Documentation
const PinName DEFAULT_GPO_PIN = D12 [static] |
Default pin used for the M24LR GPO signal.
Definition at line 86 of file XNucleoNFC02A1.h.
const PinName DEFAULT_LED1_PIN = D5 [static] |
Default pin to control the led 1.
Definition at line 88 of file XNucleoNFC02A1.h.
const PinName DEFAULT_LED2_PIN = D4 [static] |
Default pin to control the led 2.
Definition at line 89 of file XNucleoNFC02A1.h.
const PinName DEFAULT_LED3_PIN = D2 [static] |
Default pin to control the led 3.
Definition at line 90 of file XNucleoNFC02A1.h.
const PinName DEFAULT_RF_DISABLE_PIN = D11 [static] |
Default pin used for M24LR RF_DISABLE signal.
Definition at line 87 of file XNucleoNFC02A1.h.
const PinName DEFAULT_SDA_PIN = D14 [static] |
Default pin used for the M24LR SDA signal.
Definition at line 84 of file XNucleoNFC02A1.h.
const PinName DEFAULT_SDL_PIN = D15 [static] |
Default pin used for the M24LR SDL signal.
Definition at line 85 of file XNucleoNFC02A1.h.
Generated on Wed Jul 13 2022 03:37:30 by
