Programming - Ebyte E32-400MBL-01 User Manual

New generation package compatible sub-1g wirelessmodule
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.

2.5 Programming

Documents
1
ebyte_core.h
2
ebyte_exx.c
3
ebyte_port.c
ebyte_callback.c
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
A module structure is defined that abstracts the basic functionality to which the
functions of the underlying module will be bound. When used for simple sending
and receiving applications, it is not necessary to understand the underlying details of
each module's work, and the abstracted functions can be called directly to start
sending and receiving data. If you need to customize some functions, you can also
consider integrating them into this structure. If you know enough about the functions
of the underlying modules, you can also remove the ebyte_core.c/h file, and there is
no strong coupling between the
layers.
It is a specific module driver file, which is generally encapsulated and does not
require user changes, only how to input and output data from this "box".
Specifically designed to bind SPI and GPIO on different hardware platforms,
abstracted as "box" inputs. Users need to populate their hardware platforms with
communication interfaces in fixed locations according to the comments. In general, it
is to provide the SPI send/receive function and the pin level control. Some modules
are slightly special, such as the E49 using half-duplex SPI, if you are too lazy to write
the communication driver, then directly bind the IO to a fixed location, and leave the
rest to the module driver to simulate their own IO to achieve communication. As
shown in the figure below, in the comments required to provide the SPI interface
location to fill in the specific send and receive functions, from send to pass the SPI
send data, by the result to return the SPI receive
data.
It is specifically designed to bind the user's own sending and receiving logic,
abstracted as the output of a "box". Essentially, the module driver calls the user's
callback function directly after determining whether sending or receiving is complete.
MBL Evaluation Kit User Manual
Key Notes
10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mbl series

Table of Contents