Speeduino
Functions | Variables
table.ino File Reference
#include "table.h"
#include "globals.h"

Functions

void * heap_alloc (uint16_t size)
 
void table3D_setSize (struct table3D *targetTable, byte newSize)
 
int table2D_getValue (struct table2D *fromTable, int X_in)
 
int16_t table2D_getAxisValue (struct table2D *fromTable, byte X_index)
 Returns an axis (bin) value from the 2D table. This works regardless of whether that axis is bytes or int16_ts. More...
 
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. More...
 
int get3DTableValue (struct table3D *fromTable, int Y_in, int X_in)
 

Variables

static uint8_t _3DTable_heap [TABLE_HEAP_SIZE]
 
static uint16_t _heap_pointer = 0
 

Function Documentation

◆ get3DTableValue()

int get3DTableValue ( struct table3D fromTable,
int  Y_in,
int  X_in 
)
Here is the caller graph for this function:

◆ heap_alloc()

void * heap_alloc ( uint16_t  size)
Here is the caller graph for this function:

◆ table2D_getAxisValue()

int16_t table2D_getAxisValue ( struct table2D fromTable,
byte  X_index 
)

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

Parameters
fromTable
X_index
Returns
int16_t
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 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:

◆ table3D_setSize()

void table3D_setSize ( struct table3D targetTable,
byte  newSize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ _3DTable_heap

uint8_t _3DTable_heap[TABLE_HEAP_SIZE]
static

◆ _heap_pointer

uint16_t _heap_pointer = 0
static