Speeduino
Loading...
Searching...
No Matches
speeduino
table3d_typedefs.h
Go to the documentation of this file.
1
17
#pragma once
18
19
#include <stdint.h>
20
22
using
table3d_dim_t
=
uint8_t
;
23
25
using
table3d_value_t
=
uint8_t
;
26
28
using
table3d_axis_t
=
uint8_t
;
29
36
#define TABLE3D_GENERATOR(GENERATOR, ...) \
37
GENERATOR(6, Rpm, Load, ##__VA_ARGS__) \
38
GENERATOR(4, Rpm, Load, ##__VA_ARGS__) \
39
GENERATOR(8, Rpm, Load, ##__VA_ARGS__) \
40
GENERATOR(16, Rpm, Load, ##__VA_ARGS__)
41
42
// Each 3d table is given a distinct type based on size & axis domains
43
// This encapsulates the generation of the type name
44
#define TABLE3D_TYPENAME_BASE(size, xDom, yDom) table3d ## size ## xDom ## yDom
45
table3d_value_t
uint8_t table3d_value_t
The type of each table value.
Definition
table3d_typedefs.h:25
table3d_dim_t
uint8_t table3d_dim_t
Encodes the length of the axes.
Definition
table3d_typedefs.h:22
array
Definition
array.h:14
Generated by
1.9.8