Sensor Fusion Library 0.6.1
Orientation sensing for Espressif (ESP32, ESP8266) processors
Loading...
Searching...
No Matches
status.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015, Freescale Semiconductor, Inc.
3 * Copyright 2016-2017 NXP
4 * All rights reserved.
5 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
9#ifndef SENSOR_FUSION_STATUS_H_
10#define SENSOR_FUSION_STATUS_H_
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16
26typedef struct StatusSubsystem {
27 // Required internal states
31 // Required methods
32 ssSetStatus_t *set;
33 ssGetStatus_t *get;
34 ssSetStatus_t *queue;
35 ssUpdateStatus_t *update;
36 ssUpdateStatus_t *test ;
37 // application-specific internal variables
38 uint8_t toggle;
40
44 StatusSubsystem *pStatus
45);
46
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif /* SENSOR_FUSION_STATUS_H_ */
fusion_status_t
Application-specific serial communications system.
void initializeStatusSubsystem(StatusSubsystem *pStatus)
Definition status.c:169
StatusSubsystem() provides an object-like interface for communicating status to the user.
Definition status.h:26
fusion_status_t previous
Previous status state - fusion_status_t is defined in sensor_fusion.h.
Definition status.h:28
ssUpdateStatus_t * update
make pending status active/visible
Definition status.h:35
uint8_t toggle
This implementation can change LED color and have either solid/toggle.
Definition status.h:38
ssUpdateStatus_t * test
unit test which simply increments to next state
Definition status.h:36
ssSetStatus_t * set
change status immediately - no delay
Definition status.h:32
ssSetStatus_t * queue
queue status change for next regular interval
Definition status.h:34
ssGetStatus_t * get
return status
Definition status.h:33
fusion_status_t status
Current status.
Definition status.h:29
fusion_status_t next
Pending status change.
Definition status.h:30