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

- Main Page
- Modules
- Data Structures
- Files

Functions
Power
Library » Misc

## Functions
MISC_ERR_CODE | MX_RTU_Dual_Power1_Get (UINT8 *state)
MISC_ERR_CODE | MX_RTU_Dual_Power2_Get (UINT8 *state)
MODULE_RW_ERR_CODE | MX_RTU_Module_Dual_Power1_Get (UINT8 slot, UINT8 *state)
MODULE_RW_ERR_CODE | MX_RTU_Module_Dual_Power2_Get (UINT8 slot, UINT8 *state)

## Detailed Description

Sample Code:
power.c

## Function Documentation

MISC_ERR_CODE MX_RTU_Dual_Power1_Get | ( | UINT8 * | state | ) |

Parameters

  [out] | state | 0 is disconnecting and 1 is connecting.

Returns
  MISC_ERR_CODE

MISC_ERR_CODE MX_RTU_Dual_Power2_Get | ( | UINT8 * | state | ) |

Parameters

  [out] | state | 0 is disconnecting and 1 is connecting.

Returns
  MISC_ERR_CODE

MODULE_RW_ERR_CODE MX_RTU_Module_Dual_Power1_Get | ( | UINT8 | slot,
|  | UINT8 * | state
| ) |  |

Parameters

  [in] | slot | slot 0: Built-in power Ports, slot 1 ~ 12: Expansion power Ports.
  [out] | state | 0 is disconnecting and 1 is connecting.

Returns
  MODULE_RW_ERR_CODE

MODULE_RW_ERR_CODE MX_RTU_Module_Dual_Power2_Get | ( | UINT8 | slot,
|  | UINT8 * | state
| ) |  |

Parameters

  [in] | slot | slot 0: Built-in power Ports, slot 1 ~ 12: Expansion power Ports.
  [out] | state | 0 is disconnecting and 1 is connecting.

Returns
  MODULE_RW_ERR_CODE