ST Expansion SW Team / BSP

Dependents:   mbed-os-nfc04a1 Wiagro-Lanza34-XDot

Embed: (wiki syntax)

« Back to documentation index

X_NUCLEO_NFC04A1_Private_Functions

X_NUCLEO_NFC04A1_Private_Functions
[X_NUCLEO_NFC04A1]

Functions

NFCTAG_StatusTypeDef ST25DV_IO_Init (I2C *mi2cChannel, DigitalOut *mLPD)
 Initializes peripherals used by the i2cChannel NFCTAG driver.
NFCTAG_StatusTypeDef ST25DV_IO_MemWrite (const uint8_t *const pData, const uint8_t DevAddr, const uint16_t TarAddr, const uint16_t Size, I2C *mi2cChannel)
 Write data, at specific address, through i2c to the ST25DV.
NFCTAG_StatusTypeDef ST25DV_IO_Read (uint8_t *const pData, const uint8_t DevAddr, const uint16_t Size, I2C *mi2cChannel)
 Reads data at current address from the NFCTAG.
NFCTAG_StatusTypeDef ST25DV_IO_IsDeviceReady (const uint8_t DevAddr, const uint32_t Trials, I2C *mi2cChannel)
 Checks if target device is ready for communication.

Function Documentation

NFCTAG_StatusTypeDef ST25DV_IO_Init ( I2C *  mi2cChannel,
DigitalOut *  mLPD 
)

Initializes peripherals used by the i2cChannel NFCTAG driver.

Parameters:
mi2cChannel: I2C channel
mLPD
Return values:
NFCTAGenum status

Definition at line 205 of file x_nucleo_nfc04a1.cpp.

NFCTAG_StatusTypeDef ST25DV_IO_IsDeviceReady ( const uint8_t  DevAddr,
const uint32_t  Trials,
I2C *  mi2cChannel 
)

Checks if target device is ready for communication.

Note:
This function is used with Memory devices
Parameters:
DevAddr: Target device address
mi2cChannel: I2C channel
Return values:
NFCTAGenum status

Definition at line 333 of file x_nucleo_nfc04a1.cpp.

NFCTAG_StatusTypeDef ST25DV_IO_MemWrite ( const uint8_t *const   pData,
const uint8_t  DevAddr,
const uint16_t  TarAddr,
const uint16_t  Size,
I2C *  mi2cChannel 
)

Write data, at specific address, through i2c to the ST25DV.

Parameters:
pData,:pointer to the data to write
DevAddr: Target device address
TarAddr: i2c data memory address to write
Size: Size in bytes of the value to be written
mi2cChannel: I2C channel
Return values:
NFCTAGenum status

Definition at line 225 of file x_nucleo_nfc04a1.cpp.

NFCTAG_StatusTypeDef ST25DV_IO_Read ( uint8_t *const   pData,
const uint8_t  DevAddr,
const uint16_t  Size,
I2C *  mi2cChannel 
)

Reads data at current address from the NFCTAG.

Parameters:
pData,:pointer to store read data
DevAddr: Target device address
Size: Size in bytes of the value to be read
Return values:
NFCTAGenum status

Definition at line 304 of file x_nucleo_nfc04a1.cpp.