ioPAC RTU Controllers
C/C++ Sample Code Programming Guide
|
Macros | |
#define | FRAM_START_ADDRESS 0x0 |
#define | FRAM_END_ADDRESS 0x10000 |
Functions | |
IO_ERR_CODE | MX_RTU_FRAM_Read (UINT32 start_address, UINT32 length, UINT8 *buf) |
IO_ERR_CODE | MX_RTU_FRAM_Write (UINT32 start_address, UINT32 length, UINT8 *buf) |
Sample Code:
fram.c
#define FRAM_START_ADDRESS 0x0 |
#define FRAM_END_ADDRESS 0x10000 |
IO_ERR_CODE MX_RTU_FRAM_Read | ( | UINT32 | start_address, |
UINT32 | length, | ||
UINT8 * | buf | ||
) |
[in] | start_address | FRAM size is 64KB with battery-backup, from FRAM_START_ADDRESS to FRAM_END_ADDRESS . |
[in] | length | The amount of bytes are read from Start Address. |
[out] | buf | Read data buffer. |
IO_ERR_CODE MX_RTU_FRAM_Write | ( | UINT32 | start_address, |
UINT32 | length, | ||
UINT8 * | buf | ||
) |
[in] | start_address | FRAM size is 64KB with battery-backup, from FRAM_START_ADDRESS to FRAM_END_ADDRESS . |
[in] | length | The amount of bytes are written from Start Address. |
[in] | buf | Written data buffer. |