![]() |
Mbed OS Reference
|
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. | |
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. | |
void | set_event_queue (events::EventQueue *queue) |
Set the event queue that will be used to schedule event handling. | |
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.
Definition at line 229 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 458 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 467 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 474 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 488 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 496 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 531 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 570 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 596 of file m24sr_driver.h.
|
virtual |
Implements NFCEEPROMDriver.
Definition at line 610 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 |