Speeduino
Loading...
Searching...
No Matches
Classes | Macros | Functions
table2d.h File Reference
#include "globals.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  table2D
 

Macros

#define SIZE_SIGNED_BYTE   4
 
#define SIZE_BYTE   8
 
#define SIZE_INT   16
 

Functions

void construct2dTable (table2D &table, uint8_t length, uint8_t *values, uint8_t *bins)
 
void construct2dTable (table2D &table, uint8_t length, uint8_t *values, int8_t *bins)
 
void construct2dTable (table2D &table, uint8_t length, uint16_t *values, uint16_t *bins)
 
void construct2dTable (table2D &table, uint8_t length, uint8_t *values, uint16_t *bins)
 
void construct2dTable (table2D &table, uint8_t length, uint16_t *values, uint8_t *bins)
 
void construct2dTable (table2D &table, uint8_t length, int16_t *values, uint8_t *bins)
 
int16_t table2D_getAxisValue (struct table2D *fromTable, byte X_in)
 Returns an axis (bin) value from the 2D table. This works regardless of whether that axis is bytes or int16_ts.
 
int16_t table2D_getRawValue (struct table2D *fromTable, byte X_index)
 Returns an value from the 2D table given an index value. No interpolation is performed.
 
int table2D_getValue (struct table2D *fromTable, int X_in)
 

Macro Definition Documentation

◆ SIZE_BYTE

#define SIZE_BYTE   8

◆ SIZE_INT

#define SIZE_INT   16

◆ SIZE_SIGNED_BYTE

#define SIZE_SIGNED_BYTE   4

Function Documentation

◆ construct2dTable() [1/6]

void construct2dTable ( table2D table,
uint8_t  length,
int16_t values,
uint8_t bins 
)
Here is the call graph for this function:

◆ construct2dTable() [2/6]

void construct2dTable ( table2D table,
uint8_t  length,
uint16_t values,
uint16_t bins 
)
Here is the call graph for this function:

◆ construct2dTable() [3/6]

void construct2dTable ( table2D table,
uint8_t  length,
uint16_t values,
uint8_t bins 
)
Here is the call graph for this function:

◆ construct2dTable() [4/6]

void construct2dTable ( table2D table,
uint8_t  length,
uint8_t values,
int8_t bins 
)
Here is the call graph for this function:

◆ construct2dTable() [5/6]

void construct2dTable ( table2D table,
uint8_t  length,
uint8_t values,
uint16_t bins 
)
Here is the call graph for this function:

◆ construct2dTable() [6/6]

void construct2dTable ( table2D table,
uint8_t  length,
uint8_t values,
uint8_t bins 
)
Here is the call graph for this function:

◆ table2D_getAxisValue()

int16_t table2D_getAxisValue ( struct table2D fromTable,
byte  X_in 
)

Returns an axis (bin) value from the 2D table. This works regardless of whether that axis is bytes or int16_ts.

Parameters
fromTable
X_in
Returns
int16_t
Here is the call graph for this function:
Here is the caller graph for this function:

◆ table2D_getRawValue()

int16_t table2D_getRawValue ( struct table2D fromTable,
byte  X_index 
)

Returns an value from the 2D table given an index value. No interpolation is performed.

Parameters
fromTable
X_index
Returns
int16_t
Here is the call graph for this function:
Here is the caller graph for this function:

◆ table2D_getValue()

int table2D_getValue ( struct table2D fromTable,
int  X_in 
)
Here is the call graph for this function:
Here is the caller graph for this function: