Chengdu Ebyte Electronic Technology Co.,Ltd.
E32-900MBL-01 User Manua
l
Copyright ©2012–2019
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
10
no strong coupling between the layers
。
2
ebyte_exx.c
It is a specific module driver file, which is usually packaged and does not need to be
modified by the user. You only need to consider how to input and output data from this
"box".
3
ebyte_port.c
It is specially used to bind SPI and GPIO under different hardware platforms,
abstracted as "box" input. The user needs to fill the communication interface in his
hardware platform to a fixed position according to the comment. Generally speaking, it is
to provide the SPI transceiver function and pin level control. Some modules are slightly
special. For example, E49 uses half-duplex SPI. If you are too lazy to write a
communication driver, you can directly bind the IO to a fixed location, and leave the rest
to the module to drive its own analog IO to achieve communication. As shown in the
figure below, in the comments, it is required to provide the SPI interface location to fill in
the specific transceiver function, send the SPI to send data, and the result to return the SPI
to receive data
.
ebyte_callback.c
It is specially used to bind the user's own sending and receiving logic, abstracted as
the output of the "box". Essentially, the module driver directly calls the user's callback
function after confirming that the sending or receiving is completed. As shown in the
figure below, just fill in the user's logic function at the To-do prompt. The state is
transmitted by the module driver, and is actually processed by the Exx_GoTransmit()
function. When the function is complicated, you can consider modifying it to support