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

- Main Page
- Modules
- Data Structures
- Files

Functions
ToggleSwitch
Library » Misc

## Functions
MISC_ERR_CODE | MX_RTU_Toggle_Switch_Get (UINT8 *state)

## Detailed Description

Sample Code:
toggle_switch.c

## Function Documentation

MISC_ERR_CODE MX_RTU_Toggle_Switch_Get | ( | UINT8 * | state | ) |

Parameters

  [out] | state | 0 is Mode 1, and 1 is Mode 2. Modes 1 and 2 are user-defined.

Returns
  MISC_ERR_CODE