APM:Libraries
Classes | Enumerations | Functions | Variables
eedump_apparam.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
Include dependency graph for eedump_apparam.c:

Go to the source code of this file.

Classes

struct  EEPROM_header
 
struct  Param_header
 

Enumerations

enum  ap_var_type {
  AP_PARAM_NONE = 0, AP_PARAM_INT8, AP_PARAM_INT16, AP_PARAM_INT32,
  AP_PARAM_FLOAT, AP_PARAM_VECTOR3F, AP_PARAM_GROUP, AP_PARAM_NONE = 0,
  AP_PARAM_INT8, AP_PARAM_INT16, AP_PARAM_INT32, AP_PARAM_FLOAT,
  AP_PARAM_VECTOR3F, AP_PARAM_VECTOR6F, AP_PARAM_MATRIX3F, AP_PARAM_GROUP
}
 

Functions

static uint8_t type_size (enum ap_var_type type)
 
static void fail (const char *why)
 
int main (int argc, char *argv[])
 

Variables

uint8_t eeprom [0x1000]
 
static const uint16_t k_EEPROM_magic0 = 0x50
 
static const uint16_t k_EEPROM_magic1 = 0x41
 
static const uint16_t k_EEPROM_revision = 6
 
static const char * type_names [8]
 
static const uint8_t _sentinal_key = 0xFF
 
static const uint8_t _sentinal_type = 0xFF
 
static const uint8_t _sentinal_group = 0xFF
 

Enumeration Type Documentation

◆ ap_var_type

Enumerator
AP_PARAM_NONE 
AP_PARAM_INT8 
AP_PARAM_INT16 
AP_PARAM_INT32 
AP_PARAM_FLOAT 
AP_PARAM_VECTOR3F 
AP_PARAM_GROUP 
AP_PARAM_NONE 
AP_PARAM_INT8 
AP_PARAM_INT16 
AP_PARAM_INT32 
AP_PARAM_FLOAT 
AP_PARAM_VECTOR3F 
AP_PARAM_VECTOR6F 
AP_PARAM_MATRIX3F 
AP_PARAM_GROUP 

Definition at line 21 of file eedump_apparam.c.

Function Documentation

◆ fail()

static void fail ( const char *  why)
static

Definition at line 74 of file eedump_apparam.c.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 81 of file eedump_apparam.c.

Here is the call graph for this function:

◆ type_size()

static uint8_t type_size ( enum ap_var_type  type)
static

Definition at line 48 of file eedump_apparam.c.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ _sentinal_group

const uint8_t _sentinal_group = 0xFF
static

Definition at line 46 of file eedump_apparam.c.

Referenced by main().

◆ _sentinal_key

const uint8_t _sentinal_key = 0xFF
static

Definition at line 44 of file eedump_apparam.c.

Referenced by main().

◆ _sentinal_type

const uint8_t _sentinal_type = 0xFF
static

Definition at line 45 of file eedump_apparam.c.

Referenced by main().

◆ eeprom

uint8_t eeprom[0x1000]

Definition at line 9 of file eedump_apparam.c.

Referenced by main().

◆ k_EEPROM_magic0

const uint16_t k_EEPROM_magic0 = 0x50
static

Definition at line 17 of file eedump_apparam.c.

Referenced by main().

◆ k_EEPROM_magic1

const uint16_t k_EEPROM_magic1 = 0x41
static

Definition at line 18 of file eedump_apparam.c.

Referenced by main().

◆ k_EEPROM_revision

const uint16_t k_EEPROM_revision = 6
static

Definition at line 19 of file eedump_apparam.c.

Referenced by main().

◆ type_names

const char* type_names[8]
static
Initial value:
= {
"NONE", "INT8", "INT16", "INT32", "FLOAT", "VECTOR3F", "MATRIX6F", "GROUP"
}

Definition at line 33 of file eedump_apparam.c.

Referenced by main().