![onsemi AXM0F343 Скачать руководство пользователя страница 31](http://html1.mh-extra.com/html/onsemi/axm0f343/axm0f343_user-manual_1638424031.webp)
AX-ConfigurationUtility User Manual
31
11.
Comments on C-code Firmware
11.1.
File Structure
The MASTER and SLAVE and TESTS firmware projects implement the corresponding modes
using the AXRADIO API as
a “driver” for the AX5043 RF chip.
The AXRADIO API consists of the following files:
File
Description
COMMON/axradio.h
AXRadio API declaration
COMMON/easyax5043.h
AXRadio AX5043 private header
COMMON/easyax5043.c
AXRadio AX5043 main code
AX_Radio_Lab_output/config.c
Parameters generated by AX-
ConfigurationUtility based on the selected
device
It is documented in DOCU/AX-ConfigurationUtilityAPIManual.pdf
The application level code consists of the following files:
File
Description
MASTER/main.c
MASTER application level main code
SLAVE/main.c
SLAVE application level main code
TESTS/main.c
TESTS application level main code
COMMON/misc.[ch]
Application level helper files
AX_Radio_Lab_output/configslave.[ch]
Application level parameters generated by
AX-ConfigurationUtility
AX_Radio_Lab_output/configmaster.[ch] Application level parameters generated by
AX-ConfigurationUtility
11.2.
Define Statements for Tweaking the Firmware
#define ADJUST_FREQREG
(SLAVE/main.c) if defined, after successful packet reception
the receiver frequency is adjusted according to the tracked frequency offset. The frequency
is not adjusted by the entire tracked frequency offset at once. Rather low pass filtering is
applied. Low pass filtering is controlled by
FREQOFFS_K
, higher values give slower
adjustments.