ProSoft Technology MVI69E-LDM User Manual

Page 89

Advertising
background image

MVI69E-LDM ♦ "C" Programmable

Contents

Linux Application Development Module

Developer's Manual

ProSoft Technology, Inc.

Page 89 of 130

August 21, 2014

MVI69_SetLED

Syntax

int MVI69_SetLED (MVI69HANDLE handle,int lednum, int ledstate);

Parameters

handle

handle returned by previous call to MVI69_Open

lednum

Specifies which of the user LED indicators is being addressed.

ledstate

Specifies the state to set

Description
MVI69_SetLED allows an application to set the state of the LED indicators.

handle must be a valid handle returned from MVI69_Open.

lednum must be set to MVI69_LEDID_OK, MVI69_LEDID_CFG, MVI69_LEDID_P1,
MVI69_LEDID_P2, MVI69_LEDID_BP, or MVI69_LEDID_NET.

ledstate must be set to MVI69_LED_STATE_RED, MVI69_LED_STATE_GREEN,
MVI69_LED_STATE_YELLOW, or MVI69_LED_STATE_OFF.

Return Value

MVI69_SUCCESS

the LED state has been set

MVI69_ERR_NOACCESS

handle does not have access

MVI69_ERR_BADPARAM

lednum or ledstate is invalid

Example

MVI69HANDLE handle;

/* OK LED green and NET LED yellow */
MVI69_SetLED(Handle, MVI69_LEDID_OK, MVI69_LED_STATE_GREEN);
MVI69_SetLED(Handle, MVI69_LEDID_NET, MVI69_LED_STATE_YELLOW);

Advertising