eth32_get_led

int eth32_get_led(eth32 handle, int led, int *value);

Summary

This function allows you to retrieve the status of the two LED's built into the ETH32 device.

Parameters

  • handle - The value returned by the eth32_open function.

  • led - Specifies which LED (0 or 1).

  • value - Pointer to a variable which will receive the status of the specified LED. Zero means the LED is off and nonzero means it is on.

Return Value

This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.

See Also

eth32_set_led