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

- Main Page
- Modules
- Data Structures
- Files

Modules | Enumerations | Functions | Variables
Misc
Library

## Modules
| SystemInfo
| SRAM
| FRAM
| LED
| SoftwareWatchdog
| RTC
| ToggleSwitch
| RotarySwitch
| Power

## Enumerations
enum | MISC_ERR_CODE { MISC_ERR_OK = 0, MISC_ERR_DEVICE, MISC_ERR_ARGUMENT, MISC_ERR_RW, MISC_ERR_ACTION, MISC_ERR_COPY, MISC_ERR_TYPE, MISC_ERR_SEMAPHORE_LOCK, MISC_ERR_SYSTEM_INFO, MISC_ERR_NOT_SUPPORT_PRODUCT, MISC_ERR_AMOUNT }

## Functions
void | MX_RTU_Timestamp_to_Timeval (struct Timestamp *timestamp, struct timeval *tv)

## Variables
typedef | __attribute__

## Detailed Description

Sample Code:

- led.c
- power.c
- rtc.c
- software_watchdog.c
- sram.c
- fram.c
- system_info.c
- time.c
- toggle_switch.c
- rotary_switch.c

## Enumeration Type Documentation

enum MISC_ERR_CODE

Enumerator
MISC_ERR_OK | 0
MISC_ERR_DEVICE | 1
MISC_ERR_ARGUMENT | 2
MISC_ERR_RW | 3
MISC_ERR_ACTION | 4
MISC_ERR_COPY | 5
MISC_ERR_TYPE | 6
MISC_ERR_SEMAPHORE_LOCK | 7
MISC_ERR_SYSTEM_INFO | 8
MISC_ERR_NOT_SUPPORT_PRODUCT | 9
MISC_ERR_AMOUNT | 10

## Function Documentation

void MX_RTU_Timestamp_to_Timeval | ( | struct Timestamp * | timestamp,
|  | struct timeval * | tv
| ) |  |

## Variable Documentation

struct Modbus_TCP_Master_Connection_Info __attribute__