Speeduino
Loading...
Searching...
No Matches
Functions
table2d.cpp File Reference
#include "table2d.h"
#include "globals.h"

Functions

static void construct2dTable (table2D &table, uint8_t valueSize, uint8_t axisSize, uint8_t length, void *values, void *bins)
 
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)
 
static uint8_t getCacheTime (void)
 
int table2D_getValue (struct table2D *fromTable, int X_in)
 
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.
 

Function Documentation

◆ construct2dTable() [1/7]

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

◆ construct2dTable() [2/7]

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

◆ construct2dTable() [3/7]

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

◆ construct2dTable() [4/7]

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

◆ construct2dTable() [5/7]

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

◆ construct2dTable() [6/7]

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

◆ construct2dTable() [7/7]

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

◆ getCacheTime()

static uint8_t getCacheTime ( void  )
inlinestatic
Here is the caller 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: