11.1.2.5.3 Memory Objects
MPLAB declares one Python Memory object for each memory type:
memPgm
, memData
, memRegs
, memSFR
, memUser
These objects expose the following methods:
Read8
/Read16
/Read32(address)
- return a 1,2 or 4 byte little endian integer read ataddress
Write8
/Write16
/Write32(address,val)
- writes a 1, 2 or 4 bytesval
in little endian toaddress
Read( address, src, offset, count)
- readcount
bytes fromoffset
insrc
toaddress
Write( address, dest, offset, count)
- writecount
bytes fromaddress
into the byte arraydest
at offsetoffset