Moxa UC-8410A-T-LX [72/86] Cryptographic hardware accelerator

Moxa UC-8410A-T-LX [72/86] Cryptographic hardware accelerator
UC-8410A Series Linux Software Programmer’s Guide
6-10
Cryptographic Hardware Accelerator
The purpose of cryptographic hardware accelerator is to load off the intensive encryption/decryption and
compression/decompression tasks from CPU. You can use the cryptographic hardware accelerator when your
application needs to do cryptographic calculations. To use it, you need to make sure that the cryptodev driver
is loaded.
Moxa provides examples to show how to use this cryptographic accelerator. Go to the example/cryptodev/
folder for more information.
NOTE
Click the following l
ink for more information about cryptodev:
http://cryptodev
-linux.org/documentation.html/
Diagnostic LED
A diagnostic LEDs library named libmx_led.so is provided to show the status of device, but we also provide a
diagnostic LED API to let your own application use these LEDs.
Turning on the LEDs
Return code: 0 for OK; a nonzero number indicates an error.
Turn on GREEN LED onoff_led (“GREEN”, 1);
Turn on YELLOW LED onoff_led (“YELLOW”, 1);
Turn on RED LED onoff_led (“RED”, 1);
Turn on all LED on_all_led();
Turning off the LEDs
Return code: 0 for OK; a nonzero number indicates an error.
Turn off GREEN LED onoff_led (“GREEN”, 0);
Turn off YELLOW LED onoff_led (“YELLOW”, 0);
Turn off RED LED onoff_led (“RED”, 0);
Turn off ALL LED off_all_led();
Blinking the LEDs
Return code: 0 for OK; a nonzero number indicates an error.
Blink GREEN LED blink_led (“GREEN”);
Blink YELLOW LED blink_led (“YELLOW”);
Blink RED LED blink_led (“RED”);
Blink all LED blink_all_led();
ATTENTION
Be careful when using the diagnostic LEDs
Do not use the diagnostic function while own application is controlling the LEDs.

Содержание

Скачать