nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ ACCEL_TO_ANGLE_FILTER_DEFINE

#define ACCEL_TO_ANGLE_FILTER_DEFINE ( _instance_name,
_ctx,
_process_request,
_clean_request )

#include <include/accel_to_angle/accel_to_angle.h>

Value:
struct accel_to_angle_filter _instance_name = { \
.ctx = _ctx, \
.data_process_request = _process_request, \
.data_clean_request = _clean_request \
}
Descriptor of the filter instance.
Definition accel_to_angle.h:100

Define a filter instance.

The macro defines a filter instance with the specified parameters.

The filter context pointer can be NULL if not needed by the filter implementation. The clean request pointer can be NULL if not needed.

Parameters
_instance_nameName of the filter instance.
_ctxPointer to the filter context.
_process_requestPointer to the data process request callback function.
_clean_requestPointer to the data clean request callback function.