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

- Main Page
- Modules
- Data Structures
- Files

Macros | Functions
LED
Library » Misc

## Macros
#define | LED_DARK 0
#define | LED_GREEN 1
#define | LED_RED 2

## Functions
MISC_ERR_CODE | MX_RTU_LED1_Get (UINT8 *state)
MISC_ERR_CODE | MX_RTU_LED2_Get (UINT8 *state)
MISC_ERR_CODE | MX_RTU_LED1_Set (UINT8 state)
MISC_ERR_CODE | MX_RTU_LED2_Set (UINT8 state)

## Detailed Description

Sample Code:
led.c

## Macro Definition Documentation

#define LED_DARK 0

#define LED_GREEN 1

#define LED_RED 2

## Function Documentation

MISC_ERR_CODE MX_RTU_LED1_Get | ( | UINT8 * | state | ) |

Parameters

  [out] | state | LED state: LED_DARK , LED_GREEN , or LED_RED .

Returns
  MISC_ERR_CODE

MISC_ERR_CODE MX_RTU_LED2_Get | ( | UINT8 * | state | ) |

Parameters

  [out] | state | LED state: LED_DARK , LED_GREEN , or LED_RED .

Returns
  MISC_ERR_CODE

MISC_ERR_CODE MX_RTU_LED1_Set | ( | UINT8 | state | ) |

Parameters

  [in] | state | LED state: LED_DARK , LED_GREEN , or LED_RED .

Returns
  MISC_ERR_CODE

MISC_ERR_CODE MX_RTU_LED2_Set | ( | UINT8 | state | ) |

Parameters

  [in] | state | LED state: LED_DARK , LED_GREEN , or LED_RED .

Returns
  MISC_ERR_CODE