Skip to main content

Class At24Cxx

Encapsulation for EEPROMs based upon the AT24Cxx family of chips

Assembly: At24Cxx.dll
View Source
Declaration
public class At24Cxx : II2cPeripheral

Implements:
Meadow.Hardware.II2cPeripheral

Properties

DefaultI2cAddress

The default I2C address for the peripheral

View Source
Declaration
public byte DefaultI2cAddress { get; }

PageSize

Number of bytes in a page

View Source
Declaration
public ushort PageSize { get; }

MemorySize

Number of bytes in the EEPROM module

View Source
Declaration
public ushort MemorySize { get; }

Fields

i2cComms

I2C Communication bus used to communicate with the peripheral

View Source
Declaration
protected readonly II2cCommunications i2cComms

Methods

Read(ushort, ushort)

Force the sensor to make a reading and update the relevant properties.

View Source
Declaration
public byte[] Read(ushort startAddress, ushort amount)
Returns

System.Byte[]

Parameters
TypeNameDescription
System.UInt16startAddressStart address for the read operation.
System.UInt16amountAmount of data to read from the EEPROM.

Write(ushort, params byte[])

Write a number of bytes to the EEPROM.

View Source
Declaration
public void Write(ushort startAddress, params byte[] data)
Parameters
TypeNameDescription
System.UInt16startAddressAddress of he first byte to be written.
System.Byte[]dataData to be written to the EEPROM.

Implements

  • Meadow.Hardware.II2cPeripheral