ioPAC RTU Controllers
C/C++ Sample Code Programming Guide
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
SRAM

Macros

#define SRAM_START_ADDRESS   0x0
 
#define SRAM_END_ADDRESS   0x20000
 

Functions

IO_ERR_CODE MX_RTU_SRAM_Read (UINT32 start_address, UINT32 length, UINT8 *buf)
 
IO_ERR_CODE MX_RTU_SRAM_Write (UINT32 start_address, UINT32 length, UINT8 *buf)
 

Detailed Description

Sample Code:
sram.c

Macro Definition Documentation

#define SRAM_START_ADDRESS   0x0
#define SRAM_END_ADDRESS   0x20000

Function Documentation

IO_ERR_CODE MX_RTU_SRAM_Read ( UINT32  start_address,
UINT32  length,
UINT8 buf 
)
Parameters
[in]start_addressSRAM size is 128KB with battery-backup, from SRAM_START_ADDRESS to SRAM_END_ADDRESS .
[in]lengthThe amount of bytes are read from Start Address.
[out]bufRead data buffer.
Returns
IO_ERR_CODE
IO_ERR_CODE MX_RTU_SRAM_Write ( UINT32  start_address,
UINT32  length,
UINT8 buf 
)
Parameters
[in]start_addressSRAM size is 128KB with battery-backup, from SRAM_START_ADDRESS to SRAM_END_ADDRESS .
[in]lengthThe amount of bytes are written from Start Address.
[in]bufWritten data buffer.
Returns
IO_ERR_CODE