获取I/O数据
Low level bus data can be accessed from code running on the aDSP, using a POSIX-like API called DSPAL. The header files for this API are maintained
on and are commented with Doxygen formatted documentation in each header file. A description of the API’s supported
and links to the applicable header files is provided below.
- Serial:
- GPIO:
- Timers:
- Power Control: HAP_power.h
Sample Source Code
The serial API does not conform to the termios convention for setting data rate through the tcsetattr() function. IOCTL codes are used instead and are
described in the header file linked above.
Using the HAP functions provided by the Hexagon SDK, it is possible to set the power level of the aDSP. This will often lead to reduced I/O latencies.
More information on these API’s is available in the HAP_power.h header file available in the .