eth32_set_led

int eth32_set_led(eth32 handle, int led, int value);

Summary

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

Parameters

  • handle - The value returned by the eth32_open function.

  • led - Identifies which LED (0 or 1) to set.

  • value - Any nonzero value turns on the LED and zero turns it off.

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_get_led