ioPAC RTU Controllers
C/C++ Sample Code Programming Guide
|
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) |
Sample Code:
sram.c
#define SRAM_START_ADDRESS 0x0 |
#define SRAM_END_ADDRESS 0x20000 |
IO_ERR_CODE MX_RTU_SRAM_Read | ( | UINT32 | start_address, |
UINT32 | length, | ||
UINT8 * | buf | ||
) |
[in] | start_address | SRAM size is 128KB with battery-backup, from SRAM_START_ADDRESS to SRAM_END_ADDRESS . |
[in] | length | The amount of bytes are read from Start Address. |
[out] | buf | Read data buffer. |
IO_ERR_CODE MX_RTU_SRAM_Write | ( | UINT32 | start_address, |
UINT32 | length, | ||
UINT8 * | buf | ||
) |
[in] | start_address | SRAM size is 128KB with battery-backup, from SRAM_START_ADDRESS to SRAM_END_ADDRESS . |
[in] | length | The amount of bytes are written from Start Address. |
[in] | buf | Written data buffer. |