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

◆ ACCEL_TO_ANGLE_CTX_DEFINE

#define ACCEL_TO_ANGLE_CTX_DEFINE ( _instance_name,
_filter )

#include <include/accel_to_angle/accel_to_angle.h>

Value:
struct accel_to_angle_ctx _instance_name = { \
.filter = _filter, \
.pr_last = {0}, \
.pr_diff = {0}, \
}
Descriptor of the library context instance.
Definition accel_to_angle.h:133

Define a context instance that is described by the accel_to_angle_ctx structure.

The macro defines an accel_to_angle_ctx context instance with the specified filter. The context instance must be defined, as all API functions of this library require it.

The filter pointer can be NULL if filtering is not required. Use the ACCEL_TO_ANGLE_FILTER_DEFINE macro to define the filter instance.

Parameters
_instance_nameName of the accel_to_angle_ctx context instance.
_filterPointer to the filter instance described by the accel_to_angle_filter structure.