| ioPAC RTU Controllers C/C++ Sample Code Programming Guide

- Main Page
- Modules
- Data Structures
- Files

Macros | Functions
FRAM
Library » Misc

## 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)

## Detailed Description

Sample Code:
fram.c

## Macro Definition Documentation

#define FRAM_START_ADDRESS 0x0

#define FRAM_END_ADDRESS 0x10000

## Function Documentation

IO_ERR_CODE MX_RTU_FRAM_Read | ( | UINT32 | start_address,
|  | UINT32 | length,
|  | UINT8 * | buf
| ) |  |

Parameters

  [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.

Returns
  IO_ERR_CODE

IO_ERR_CODE MX_RTU_FRAM_Write | ( | UINT32 | start_address,
|  | UINT32 | length,
|  | UINT8 * | buf
| ) |  |

Parameters

  [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.

Returns
  IO_ERR_CODE