APM:Libraries
Classes | Macros | Typedefs | Enumerations | Functions
AP_Module_Structures.h File Reference
#include <stdint.h>
#include <stdbool.h>
Include dependency graph for AP_Module_Structures.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AHRS_state
 
struct  gyro_sample
 
struct  accel_sample
 

Macros

#define AHRS_state_version   3
 
#define gyro_sample_version   1
 
#define accel_sample_version   2
 

Typedefs

typedef void(* ap_hook_setup_start_fn_t) (uint64_t)
 
typedef void(* ap_hook_setup_complete_fn_t) (uint64_t)
 
typedef void(* ap_hook_AHRS_update_fn_t) (const struct AHRS_state *)
 
typedef void(* ap_hook_gyro_sample_fn_t) (const struct gyro_sample *)
 
typedef void(* ap_hook_accel_sample_fn_t) (const struct accel_sample *)
 

Enumerations

enum  AHRS_status { AHRS_STATUS_INITIALISING = 0, AHRS_STATUS_UNHEALTHY = 1, AHRS_STATUS_HEALTHY = 2 }
 

Functions

void ap_hook_setup_start (uint64_t time_us)
 
void ap_hook_setup_complete (uint64_t time_us)
 
void ap_hook_AHRS_update (const struct AHRS_state *state)
 
void ap_hook_gyro_sample (const struct gyro_sample *state)
 
void ap_hook_accel_sample (const struct accel_sample *state)
 

Macro Definition Documentation

◆ accel_sample_version

#define accel_sample_version   2

Definition at line 19 of file AP_Module_Structures.h.

◆ AHRS_state_version

#define AHRS_state_version   3

Definition at line 17 of file AP_Module_Structures.h.

◆ gyro_sample_version

#define gyro_sample_version   1

Definition at line 18 of file AP_Module_Structures.h.

Typedef Documentation

◆ ap_hook_accel_sample_fn_t

typedef void(* ap_hook_accel_sample_fn_t) (const struct accel_sample *)

Definition at line 158 of file AP_Module_Structures.h.

◆ ap_hook_AHRS_update_fn_t

typedef void(* ap_hook_AHRS_update_fn_t) (const struct AHRS_state *)

Definition at line 152 of file AP_Module_Structures.h.

◆ ap_hook_gyro_sample_fn_t

typedef void(* ap_hook_gyro_sample_fn_t) (const struct gyro_sample *)

Definition at line 155 of file AP_Module_Structures.h.

◆ ap_hook_setup_complete_fn_t

typedef void(* ap_hook_setup_complete_fn_t) (uint64_t)

Definition at line 149 of file AP_Module_Structures.h.

◆ ap_hook_setup_start_fn_t

typedef void(* ap_hook_setup_start_fn_t) (uint64_t)

Definition at line 146 of file AP_Module_Structures.h.

Enumeration Type Documentation

◆ AHRS_status

Enumerator
AHRS_STATUS_INITIALISING 
AHRS_STATUS_UNHEALTHY 
AHRS_STATUS_HEALTHY 

Definition at line 21 of file AP_Module_Structures.h.

Function Documentation

◆ ap_hook_accel_sample()

void ap_hook_accel_sample ( const struct accel_sample state)

Definition at line 53 of file moduletest.c.

Here is the call graph for this function:

◆ ap_hook_AHRS_update()

void ap_hook_AHRS_update ( const struct AHRS_state state)

Definition at line 25 of file moduletest.c.

Here is the call graph for this function:

◆ ap_hook_gyro_sample()

void ap_hook_gyro_sample ( const struct gyro_sample state)

Definition at line 39 of file moduletest.c.

Here is the call graph for this function:

◆ ap_hook_setup_complete()

void ap_hook_setup_complete ( uint64_t  time_us)

Definition at line 17 of file moduletest.c.

Here is the call graph for this function:

◆ ap_hook_setup_start()

void ap_hook_setup_start ( uint64_t  time_us)

Definition at line 12 of file moduletest.c.

Here is the call graph for this function: