Class representing a M24SR component. More...
#include <m24sr_driver.h>
Data Structures | |
class | Callbacks |
Object that contains all the callbacks fired by this class, each command has its own callback. More... | |
Public Member Functions | |
M24srDriver (PinName i2c_data_pin=NC, PinName i2c_clock_pin=NC, PinName gpo_pin=NC, PinName rf_disable_pin=NC) | |
Create the driver, default pin names will be used appropriate for the board. More... | |
virtual void | reset () |
virtual size_t | read_max_size () |
virtual void | start_session (bool force=true) |
virtual void | end_session () |
virtual void | read_bytes (uint32_t address, uint8_t *bytes, size_t count) |
virtual void | write_bytes (uint32_t address, const uint8_t *bytes, size_t count) |
virtual void | write_size (size_t count) |
virtual void | read_size () |
virtual void | erase_bytes (uint32_t address, size_t size) |
void | set_delegate (Delegate *delegate) |
Set the delegate that will receive events generated by this EEPROM. More... | |
void | set_event_queue (events::EventQueue *queue) |
Set the event queue that will be used to schedule event handling. More... | |
Class representing a M24SR component.
This component has two operation modes, sync or async. In sync mode each function call returns only after the command has completed. In async mode each function call returns immediately and the answer will be notified through a callback. The default behaviour is sync mode. To enable the async mode ManageI2CGPO(I2C_ANSWER_READY) function must be called. When the component notifies an interrupt user must call ManageEvent function. Note that passing a parameter other than I2C_ANSWER_READY to ManageI2CGPO initialize the component in sync mode.
Definition at line 232 of file m24sr_driver.h.
M24srDriver | ( | PinName | i2c_data_pin = NC , |
PinName | i2c_clock_pin = NC , |
||
PinName | gpo_pin = NC , |
||
PinName | rf_disable_pin = NC |
||
) |
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 491 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 613 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 499 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 470 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 599 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 461 of file m24sr_driver.h.
|
inherited |
Set the delegate that will receive events generated by this EEPROM.
[in] | delegate | the delegate instance to use |
|
inherited |
Set the event queue that will be used to schedule event handling.
[in] | queue | the queue instance to use |
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 477 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 534 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 573 of file m24sr_driver.h.