M5Unit-NFC 0.1.0 git rev:93745b5
Loading...
Searching...
No Matches
m5::unit::CapST25R3916 Class Reference

ST25R3916 unit in CapCC1101 (SPI) More...

#include <unit_ST25R3916.hpp>

Inheritance diagram for m5::unit::CapST25R3916:
m5::unit::UnitST25R3916

Public Member Functions

 CapST25R3916 (const uint8_t cs_pin=DEFAULT_ADDRESS)
 Constructor.
 
virtual bool begin () override
 Initialize the unit.
 
- Public Member Functions inherited from m5::unit::UnitST25R3916
 UnitST25R3916 (const uint8_t arg=DEFAULT_ADDRESS)
 Constructor.
 
virtual void update (const bool force=false) override
 Update the unit state.
 
m5::nfc::NFC NFCMode () const
 Gets the current operating mode.
 
bool configureNFCMode (const m5::nfc::NFC mode)
 Configure NFC mode.
 
bool configureEmulationMode (const m5::nfc::NFC mode)
 Configure NFC mode for emulation.
 
bool isNFCMode (const m5::nfc::NFC mode) const
 Is the current operating mode the one specified?
 
bool writeDirectCommand (const uint8_t cmd, const uint8_t *data=nullptr, const uint32_t dlen=0u)
 Write the direct command with data.
 
void dumpRegister ()
 
config_t config ()
 Gets the configuration.
 
void config (const config_t &cfg)
 Set the configuration.
 
bool clearInterrupts ()
 Clear interrupts flag.
 
bool writeInitiatorOperationMode (const st25r3916::InitiatorOperationMode mode, const uint8_t optional=0)
 Write the initiator operation mode and transition to initiator mode.
 
bool writeTargetOperationMode (const st25r3916::TargetOperationMode mode, const uint8_t optional=0)
 Write the initiator operation mode and transition to target mode.
 
bool writeBitrate (const m5::nfc::Bitrate tx, const m5::nfc::Bitrate rx)
 Set the bitrate for TX/RX.
 
bool readFIFOSize (uint16_t &bytes, uint8_t &bits)
 Read the FIFO size.
 
uint32_t readFIFO (uint16_t &actual, uint8_t *buf, const uint16_t buf_size)
 Read from FIFO.
 
bool writeFIFO (const uint8_t *buf, const uint16_t buf_size)
 Write to FIFO.
 
bool readIOConfiguration1 (uint8_t &value)
 Read the I/O configuration 1.
 
bool writeIOConfiguration1 (const uint8_t value)
 Write the I/O configuration 1.
 
bool readIOConfiguration2 (uint8_t &value)
 Read the I/O configuration 2.
 
bool writeIOConfiguration2 (const uint8_t value)
 
bool readIOConfiguration (uint16_t &value)
 Read the I/O configuration 1-2.
 
bool writeIOConfiguration (const uint16_t value)
 
bool readOperationControl (uint8_t &value)
 Read the operation control.
 
bool writeOperationControl (const uint8_t value)
 Write the operation control.
 
bool readModeDefinition (uint8_t &value)
 Read the mode definition.
 
bool writeModeDefinition (const uint8_t value)
 Write the mode definition.
 
bool readBitrateDefinition (uint8_t &value)
 Read the bitrate definition.
 
bool writeBitrateDefinition (const uint8_t value)
 Write the bitrate definition.
 
bool readSettingsISO14443A (uint8_t &value)
 Read the settings for ISO14443A and NFC 106kb/s.
 
bool writeSettingsISO14443A (const uint8_t value)
 Write the settings for ISO14443A and NFC 106kb/s.
 
bool readSettingsISO14443B (uint8_t &value)
 Read the settings for ISO14443B.
 
bool writeSettingsISO14443B (const uint8_t value)
 Write the settings for ISO14443B.
 
bool readSettingsFelica (uint8_t &value)
 Read the settings for ISO14443B and FeliCa.
 
bool writeSettingsFelica (const uint8_t value)
 Write the settings for ISO14443B and FeliCa.
 
bool readNFCIP1PassiveTargetDefinition (uint8_t &value)
 Read the NFCIP-1 passive target definition.
 
bool writeNFCIP1PassiveTargetDefinition (const uint8_t value)
 
bool readStreamModeDefinition (uint8_t &value)
 Read the stream mode definition.
 
bool writeStreamModeDefinition (const uint8_t value)
 Write the stream mode definition.
 
bool readAuxiliaryDefinition (uint8_t &value)
 Read the Auxiliary definition.
 
bool writeAuxiliaryDefinition (const uint8_t value)
 Write the Auxiliary definition.
 
bool readEMDSuppressionConfiguration (uint8_t &value)
 Read the EMD suppression configuration.
 
bool writeEMDSuppressionConfiguration (const uint8_t value)
 Write the EMD suppression configuration.
 
bool readSubcarrierStartTimer (uint8_t &value)
 Read the subcarrier start timer.
 
bool writeSubcarrierStartTimer (const uint8_t value)
 Write the subcarrier start timer.
 
bool readReceiverConfiguration1 (uint8_t &value)
 Read the receiver configuration 1.
 
bool writeReceiverConfiguration1 (const uint8_t value)
 Write the receiver configuration 1.
 
bool readReceiverConfiguration2 (uint8_t &value)
 Read the receiver configuration 2.
 
bool writeReceiverConfiguration2 (const uint8_t value)
 Write the receiver configuration 2.
 
bool readReceiverConfiguration3 (uint8_t &value)
 Read the receiver configuration 3.
 
bool writeReceiverConfiguration3 (const uint8_t value)
 Write the receiver configuration 3.
 
bool readReceiverConfiguration4 (uint8_t &value)
 
bool writeReceiverConfiguration4 (const uint8_t value)
 Write the receiver configuration 4.
 
bool readReceiverConfiguration (uint32_t &value)
 Read the receiver configuration 1-4.
 
bool writeReceiverConfiguration (const uint32_t value)
 Write the receiver configuration 1-4.
 
bool readP2PReceiverConfiguration (uint8_t &value)
 Read the P2P receiver configuration.
 
bool writeP2PReceiverConfiguration (const uint8_t value)
 Write the P2P receiver configuration.
 
bool readCorrelatorConfiguration1 (uint8_t &value)
 Read the correlator configuration 1.
 
bool writeCorrelatorConfiguration1 (const uint8_t value)
 Write the correlator configuration 1.
 
bool readCorrelatorConfiguration2 (uint8_t &value)
 Read the correlator configuration 2.
 
bool writeCorrelatorConfiguration2 (const uint8_t value)
 Write the correlator configuration 2.
 
bool readCorrelatorConfiguration (uint16_t &value)
 Read the correlator configuration 1-2.
 
bool writeCorrelatorConfiguration (const uint16_t value)
 Write the correlator configuration 1-2.
 
bool readMaskReceiveTimer (uint8_t &value)
 Read the mask receive timer.
 
bool writeMaskReceiveTimer (const uint8_t value)
 Write the mask receive timer.
 
bool readNoResponseTimer1 (uint8_t &value)
 Read the no-response timer 1.
 
bool writeNoResponseTimer1 (const uint8_t value)
 Write the no-response timer 1.
 
bool readNoResponseTimer2 (uint8_t &value)
 Read the no-response timer 2.
 
bool writeNoResponseTimer2 (const uint8_t value)
 Write the no-response timer 2.
 
bool readNoResponseTimer (uint16_t &value)
 Read the no-response timer 1-2.
 
bool writeNoResponseTimer (const uint16_t value)
 Write the no-response timer 1-2.
 
bool readTimerAndEMVControl (uint8_t &value)
 Read the timer and EMV control.
 
bool writeTimerAndEMVControl (const uint8_t value)
 Write the timer and EMV control.
 
bool readGeneralPurposeTimer1 (uint8_t &value)
 Read the general purpose timer 1.
 
bool writeGeneralPurposeTimer1 (const uint8_t value)
 Write the general purpose timer 1.
 
bool readGeneralPurposeTimer2 (uint8_t &value)
 Read the general purpose timer 2.
 
bool writeGeneralPurposeTimer2 (const uint8_t value)
 Write the general purpose timer 2.
 
bool readGeneralPurposeTimer (uint16_t &value)
 Read the general purpose timer 1-2.
 
bool writeGeneralPurposeTimer (const uint16_t value)
 Write the general purpose timer 1-2.
 
bool readPPON2FieldWaiting (uint8_t &value)
 Read the PPON2 field waiting.
 
bool writePPON2FieldWaiting (const uint8_t value)
 Write the PPON2 field waiting.
 
bool readSquelchTimer (uint8_t &value)
 Read the squelch timer.
 
bool writeSquelchTimer (const uint8_t value)
 Write the squelch timer.
 
bool readNFCFieldOnGuardTimer (uint8_t &value)
 Read the NFC field on guard timer.
 
bool writeNFCFieldOnGuardTimer (const uint8_t value)
 Write the NFC field on guard timer.
 
bool readMaskMainInterrupt (uint8_t &value)
 Read the mask main interrupt.
 
bool writeMaskMainInterrupt (const uint8_t value)
 Write the mask main interrupt.
 
bool readMaskTimerAndNFCInterrupt (uint8_t &value)
 Read the mask timer and NFC interrupt.
 
bool writeMaskTimerAndNFCInterrupt (const uint8_t value)
 Write the mask timer and NFC interrupt.
 
bool readMaskErrorAndWakeupInterrupt (uint8_t &value)
 Read the mask error and wake-up interrupt.
 
bool writeMaskErrorAndWakeupInterrupt (const uint8_t value)
 Write the mask error and wake-up interrupt.
 
bool readMaskPassiveTargetInterrupt (uint8_t &value)
 Read the mask passive target interrupt.
 
bool writeMaskPassiveTargetInterrupt (const uint8_t value)
 Write the mask passive target interrupt.
 
bool readMaskInterrupts (uint32_t &value)
 Read the all mask.
 
bool writeMaskInterrupts (const uint32_t value)
 Write the all mask.
 
bool readMainInterrupt (uint8_t &value)
 Read the main interrupt.
 
bool readTimerAndNFCInterrupt (uint8_t &value)
 Read the timer and NFC interrupt.
 
bool readErrorAndWakeupInterrupt (uint8_t &value)
 Read the error and wake-up interrupt.
 
bool readPassiveTargetInterrupt (uint8_t &value)
 Read the passive target interrupt.
 
bool readInterrupts (uint32_t &value)
 Read the all interrupt.
 
bool readFIFOStatus1 (uint8_t &value)
 Read the FIFO status 1.
 
bool readFIFOStatus2 (uint8_t &value)
 Read the FIFO status 1.
 
bool readFIFOStatus (uint16_t &value)
 Read the FIFO status 1-2.
 
bool readCollisionDisplay (uint8_t &value)
 Read the collision display.
 
bool readPassiveTargetDisplay (uint8_t &value)
 Read the passive target.
 
bool readNumberOfTransmittedBytes1 (uint8_t &value)
 Read the number of transmitted bytes 1.
 
bool writeNumberOfTransmittedBytes1 (const uint8_t value)
 Write the number of transmitted bytes 1.
 
bool readNumberOfTransmittedBytes2 (uint8_t &value)
 Read the number of transmitted bytes 2.
 
bool writeNumberOfTransmittedBytes2 (const uint8_t value)
 Write the number of transmitted bytes 2.
 
bool readNumberOfTransmittedBytes (uint16_t &value)
 Read the number of transmitted bytes 1-2.
 
bool writeNumberOfTransmittedBytes (const uint16_t value)
 Write the number of transmitted bytes 1-2.
 
bool writeNumberOfTransmittedBytes (const uint16_t bytes, const uint8_t bits)
 Write the number of transmitted bytes and after bytes.
 
bool readBitrateDetectionDisplay (uint8_t &value)
 Read the bit rate detection display.
 
bool readADConverterOutput (uint8_t &value)
 Read the number of transmitted bytes 2.
 
bool readAntennaTuningControl1 (uint8_t &value)
 Read the Antenna tuning control 1.
 
bool writeAntennaTuningControl1 (const uint8_t value)
 Write the Antenna tuning control 1.
 
bool readAntennaTuningControl2 (uint8_t &value)
 Read the Antenna tuning control 2.
 
bool writeAntennaTuningControl2 (const uint8_t value)
 Write the Antenna tuning control 2.
 
bool readAntennaTuningControl (uint16_t &value)
 Read the Antenna tuning control 1-2.
 
bool writeAntennaTuningControl (const uint16_t value)
 Write the Antenna tuning control 1-2.
 
bool readTXDriver (uint8_t &value)
 Read the TX driver.
 
bool writeTXDriver (const uint8_t value)
 Write the TX driver.
 
bool readPassiveTargetModulation (uint8_t &value)
 Read the passive target modulation.
 
bool writePassiveTargetModulation (const uint8_t value)
 Write the passive target modulation.
 
bool readAuxiliaryModulationSetting (uint8_t &value)
 Read the auxiliary modulation setting.
 
bool writeAuxiliaryModulationSetting (const uint8_t value)
 Write the auxiliary modulation setting.
 
bool readTXDriverTiming (uint8_t &value)
 Read the TX driver timing.
 
bool writeTXDriverTiming (const uint8_t value)
 Write the TX driver timing.
 
bool readExternalFieldDetectorActivationThreshold (uint8_t &value)
 Read the external field detector activation threshold.
 
bool writeExternalFieldDetectorActivationThreshold (const uint8_t value)
 Write the external field detector activation threshold.
 
bool readExternalFieldDetectorDeactivationThreshold (uint8_t &value)
 Read the external field detector deactivation threshold.
 
bool writeExternalFieldDetectorDeactivationThreshold (const uint8_t value)
 Write the external field detector deactivation threshold.
 
bool readResistiveAMModulation (uint8_t &value)
 Read the resistive AM modulation.
 
bool writeResistiveAMModulation (const uint8_t value)
 Write the resistive AM modulation.
 
bool readTXDriverTimingDisplay (uint8_t &value)
 Read the TX driver timing display.
 
bool readRegulatorVoltageControl (uint8_t &value)
 Read the regulator voltage control.
 
bool writeRegulatorVoltageControl (const uint8_t value)
 Write the regulator voltage control.
 
bool readRegulatorDisplay (uint8_t &value)
 Read the regulator display.
 
bool readRSSIDisplay (uint8_t &value)
 Read the external field detector deactivation threshold.
 
bool readGainReductionState (uint8_t &value)
 Read the gain reduction state.
 
bool readCapacitiveSensorControl (uint8_t &value)
 Read the capacitive sensor control.
 
bool writeCapacitiveSensorControl (const uint8_t value)
 Write the capacitive sensor control.
 
bool readCapacitiveSensorDisplay (uint8_t &value)
 Read the capacitive sensor display.
 
bool readAuxiliaryDisplay (uint8_t &value)
 Read the auxiliary display.
 
bool readWakeupTimerControl (uint8_t &value)
 Read the Wake-up timer control.
 
bool writeWakeupTimerControl (const uint8_t value)
 Write the Wake-up timer control.
 
bool readAmplitudeMeasurementConfiguration (uint8_t &value)
 Read the amplitude measurement configuration.
 
bool writeAmplitudeMeasurementConfiguration (const uint8_t value)
 Write the amplitude measurement configuration.
 
bool readAmplitudeMeasurementReference (uint8_t &value)
 Read the amplitude measurement reference.
 
bool writeAmplitudeMeasurementReference (const uint8_t value)
 Write the amplitude measurement reference.
 
bool readAmplitudeMeasurementAutoAveragingDisplay (uint8_t &value)
 Read the amplitude measurement auto-averaging display.
 
bool readAmplitudeMeasurementDisplay (uint8_t &value)
 Read the amplitude measurement display.
 
bool readPhaseMeasurementConfiguration (uint8_t &value)
 Read the phase measurement configuration.
 
bool writePhaseMeasurementConfiguration (const uint8_t value)
 Write the phase measurement configuration.
 
bool readPhaseMeasurementReference (uint8_t &value)
 Read the phase measurement reference.
 
bool writePhaseMeasurementReference (const uint8_t value)
 Write the phase measurement reference.
 
bool readPhaseMeasurementAutoAveragingDisplay (uint8_t &value)
 Read the phase measurement auto-averaging display.
 
bool readPhaseMeasurementDisplay (uint8_t &value)
 Read the phase measurement display.
 
bool readCapacitanceMeasurementConfiguration (uint8_t &value)
 Read the capacitance measurement configuration.
 
bool writeCapacitanceMeasurementConfiguration (const uint8_t value)
 Write the capacitance measurement configuration.
 
bool readCapacitanceMeasurementReference (uint8_t &value)
 Read the capacitance measurement reference.
 
bool writeCapacitanceMeasurementReference (const uint8_t value)
 Write the capacitance measurement reference.
 
bool readCapacitanceMeasurementAutoAveragingDisplay (uint8_t &value)
 Read the capacitance measurement auto-averaging display.
 
bool readCapacitanceMeasurementDisplay (uint8_t &value)
 Read the capacitance measurement display.
 
bool readOvershootProtectionConfiguration1 (uint8_t &value)
 Read the overshoot protection configuration 1.
 
bool writeOvershootProtectionConfiguration1 (const uint8_t value)
 Write the overshoot protection configuration 1.
 
bool readOvershootProtectionConfiguration2 (uint8_t &value)
 Read the overshoot protection configuration 2.
 
bool writeOvershootProtectionConfiguration2 (const uint8_t value)
 Write the overshoot protection configuration 2.
 
bool readOvershootProtectionConfiguration (uint16_t &value)
 Read the overshoot protection configuration 1-2.
 
bool writeOvershootProtectionConfiguration (const uint16_t value)
 Write the overshoot protection configuration 1-2.
 
bool readUndershootProtectionConfiguration1 (uint8_t &value)
 Read the undershoot protection configuration 1.
 
bool writeUndershootProtectionConfiguration1 (const uint8_t value)
 Write the undershoot protection configuration 1.
 
bool readUndershootProtectionConfiguration2 (uint8_t &value)
 Read the undershoot protection configuration 2.
 
bool writeUndershootProtectionConfiguration2 (const uint8_t value)
 Write the undershoot protection configuration 2.
 
bool readUndershootProtectionConfiguration (uint16_t &value)
 Read the undershoot protection configuration 1-2.
 
bool writeUndershootProtectionConfiguration (const uint16_t value)
 Write the undershoot protection configuration 1-2.
 
bool readICIdentity (uint8_t &type, uint8_t &rev)
 Read the IC identity.
 
bool disableField ()
 Disable the Field to stop communication with the PICC.
 
bool enableField ()
 Enable the Field to begin supplying power to the PICC and start communication.
 
uint32_t nfcaTransceive (uint8_t *rx, uint16_t &rx_len, const uint8_t *tx, const uint16_t tx_len, const uint32_t timeout_ms, const uint16_t min_rx_len=0)
 Transceive.
 
bool nfcaTransmit (const uint8_t *tx, const uint16_t tx_len, const uint32_t timeout_ms)
 Transmit raw bytes (no receive)
 
bool nfcaEmulationTransmit (const uint8_t *tx, const uint16_t tx_len)
 Transmit in emulation (PICC) mode with minimal I2C overhead.
 
bool nfcaReceive (uint8_t *rx, uint16_t &rx_len, const uint32_t timeout_ms, const uint16_t min_rx_len=0)
 Receive raw bytes (no transmit)
 
bool nfcaRequest (uint16_t &atqa)
 Request for idle PICC.
 
bool nfcaWakeup (uint16_t &atqa)
 Wakeup for idle/halt PICC.
 
bool nfcaSelectWithAnticollision (bool &completed, m5::nfc::a::PICC &picc, const uint8_t lv)
 Select PICC with anti-collision.
 
bool nfcaSelect (const m5::nfc::a::PICC &picc)
 Select specific PICC.
 
bool nfcaReadBlock (uint8_t rx[16], const uint8_t block)
 Read the 1 block / 4 pages (16 bytes)
 
bool nfcaWriteBlock (const uint8_t block, const uint8_t tx[16])
 Write the 1 block / 4 pages (16 bytes)
 
bool nfcaHlt ()
 Hlt for PICC.
 
bool mifareClassicAuthenticateA (const m5::nfc::a::PICC &picc, const uint8_t block, const m5::nfc::a::mifare::classic::Key &key=m5::nfc::a::mifare::classic::DEFAULT_KEY)
 Authentication using keyA of the specified block.
 
bool mifareClassicAuthenticateB (const m5::nfc::a::PICC &picc, const uint8_t block, const m5::nfc::a::mifare::classic::Key &key=m5::nfc::a::mifare::classic::DEFAULT_KEY)
 Authentication using keyB of the specified block.
 
bool mifareClassicValueBlock (const m5::nfc::a::Command cmd, const uint8_t block, const uint32_t arg=0)
 Operation for the value block.
 
bool nfcbTransceive (uint8_t *rx, uint16_t &rx_len, const uint8_t *tx, const uint16_t tx_len, const uint32_t timeout_ms, const uint16_t min_rx_len=0)
 Transceive with NFC-B PICC.
 
bool nfcbTransmit (const uint8_t *tx, const uint16_t tx_len, const uint32_t timeout_ms)
 Transmit to NFC-B PICC.
 
bool nfcbReceive (uint8_t *rx, uint16_t &rx_len, const uint32_t timeout_ms, const uint16_t min_rx_len=0)
 Receive from NFC-B PICC.
 
bool nfcfTransceive (uint8_t *rx, uint16_t &rx_len, const uint8_t *tx, const uint16_t tx_len, const uint32_t timeout_ms, const uint16_t min_rx_len=0)
 Transceive with NFC-F PICC.
 
bool nfcfTransmit (const uint8_t *tx, const uint16_t tx_len, const uint32_t timeout_ms)
 Transmit to NFC-F PICC.
 
bool nfcfEmulationTransmit (const uint8_t *tx, const uint16_t tx_len)
 Transmit in emulation (PICC) mode with minimal I2C overhead.
 
bool nfcfReceive (uint8_t *rx, uint16_t &rx_len, const uint32_t timeout_ms, const uint16_t min_rx_len=0)
 Receive from NFC-F PICC.
 
bool nfcvTransceive (uint8_t *rx, uint16_t &rx_len, const uint8_t *tx, const uint16_t tx_bytes, const uint32_t timeout_ms, const m5::nfc::v::ModulationMode mode=m5::nfc::v::ModulationMode::OneOf4, const uint16_t min_rx_len=0)
 Transceive.
 
bool nfcvTransmit (const uint8_t *tx, const uint16_t tx_len, const uint32_t timeout_ms, const m5::nfc::v::ModulationMode mode=m5::nfc::v::ModulationMode::OneOf4)
 Transmit to NFC-V PICC.
 
bool nfcvReceive (uint8_t *rx, uint16_t &rx_len, const uint32_t timeout_ms, const uint16_t min_rx_len=0)
 Receive from NFC-V PICC.
 
bool writePtMemoryA (const uint8_t *tx, const uint32_t tx_len)
 Write pattern memory for NFC-A target.
 
bool writePtMemoryF (const uint8_t *tx, const uint32_t tx_len)
 Write pattern memory for NFC-F target.
 
bool writePtMemoryTSN (const uint8_t *tx, const uint32_t tx_len)
 Write pattern memory TSN block.
 
bool readPtMemory (uint8_t *rx, const uint32_t rx_len)
 Read pattern memory.
 

Additional Inherited Members

- Protected Member Functions inherited from m5::unit::UnitST25R3916
bool read_register8 (const uint8_t reg, uint8_t &v)
 
bool read_register8 (const uint16_t reg, uint8_t &v)
 
bool write_register8 (const uint8_t reg, const uint8_t v)
 
bool write_register8 (const uint16_t reg, const uint8_t v)
 
bool read_register16 (const uint8_t reg, uint16_t &v)
 
bool read_register16 (const uint16_t reg, uint16_t &v)
 
bool write_register16 (const uint8_t reg, const uint16_t v)
 
bool write_register16 (const uint16_t reg, const uint16_t v)
 
bool read_register32 (const uint8_t reg, uint32_t &v)
 
bool read_register32 (const uint16_t reg, uint32_t &v)
 
bool write_register32 (const uint8_t reg, const uint32_t v)
 
bool write_register32 (const uint16_t reg, const uint32_t v)
 
bool write_fwt_timer (const uint32_t ms)
 
bool write_mask_receiver_timer (const uint32_t us)
 
bool write_squelch_timer (const uint32_t us)
 
uint32_t wait_for_interrupt (const uint32_t irq, const uint32_t timeout_ms=100)
 
bool wait_for_FIFO (const uint32_t timeout_ms, const uint16_t required_size=0)
 
bool read_FIFO (std::vector< uint8_t > &out)
 
bool configure_nfc_a ()
 
bool configure_nfc_b ()
 
bool configure_nfc_f ()
 
bool configure_nfc_v ()
 
bool nfc_initial_field_on ()
 
bool configure_emulation_a ()
 
bool configure_emulation_f ()
 
bool modify_bit_register8 (const uint8_t reg, const uint8_t set_mask, const uint8_t clear_mask)
 
bool modify_bit_register8 (const uint16_t reg, const uint8_t set_mask, const uint8_t clear_mask)
 
bool set_bit_register8 (const uint8_t reg, const uint8_t bits)
 
bool set_bit_register8 (const uint16_t reg, const uint8_t bits)
 
bool clear_bit_register8 (const uint8_t reg, const uint8_t bits)
 
bool clear_bit_register8 (const uint16_t reg, const uint8_t bits)
 
bool change_bit_register8 (const uint8_t reg, const uint8_t bits, const uint8_t mask)
 
bool change_bit_register8 (const uint16_t reg, const uint8_t bits, const uint8_t mask)
 
bool change_test_bit_register8 (const uint8_t reg, const uint8_t bits, const uint8_t mask)
 
bool change_test_bit_register8 (const uint16_t reg, const uint8_t bits, const uint8_t mask)
 
bool modify_interrupts (const uint32_t clr, const uint32_t set)
 
bool enable_interrupts (const uint32_t mask)
 
bool disable_interrupts (const uint32_t mask)
 
bool enable_osc ()
 
bool disable_field ()
 
bool nfca_request_wakeup (uint16_t &atqa, const bool req)
 
bool nfca_anti_collision (uint8_t rbuf[5], const uint8_t lv)
 
bool mifare_classic_send_encrypt (const uint8_t *tx, const uint16_t tx_len)
 
bool mifare_classic_transceive_encrypt (uint8_t *rx, uint16_t &rx_len, const uint8_t *tx, const uint16_t tx_len, const uint32_t timeout_ms, const bool include_crc, const bool decrypt)
 
bool mifare_classic_authenticate (const m5::nfc::a::Command cmd, const m5::nfc::a::PICC &picc, const uint8_t block, const m5::nfc::a::mifare::classic::Key &key)
 
- Static Protected Member Functions inherited from m5::unit::UnitST25R3916
static void IRAM_ATTR on_irq (void *arg)
 

Detailed Description

ST25R3916 unit in CapCC1101 (SPI)

Constructor & Destructor Documentation

◆ CapST25R3916()

m5::unit::CapST25R3916::CapST25R3916 ( const uint8_t cs_pin = DEFAULT_ADDRESS)
explicit

Constructor.

Parameters
cs_pinSPI CS pin

Member Function Documentation

◆ begin()

bool m5::unit::CapST25R3916::begin ( )
overridevirtual

Initialize the unit.

Returns
True if initialization succeeded

Reimplemented from m5::unit::UnitST25R3916.