|
libtinylor
Single-file header library for controlling Light-O-Rama hardware
|

Functions | |
| static void | test_channel_format_header (const unsigned short cbits, const lor_channel_format expected) |
| Tests the channel format header byte selection. | |
| static void | test_channel_alignment (const lor_channel first, const unsigned short cbits, const lor_channel_set expected) |
| Tests the channel alignment calculation. | |
| int | main (void) |
| int main | ( | void | ) |

|
static |
Tests the channel alignment calculation.
| first | The first channel to encode. |
| cbits | 16-bit bitset of channels relative to first to encode. |
| expected | The expected channel alignment result. |


|
static |
Tests the channel format header byte selection.
| cbits | 16-bit bitset of channels to encode. |
| expected | The expected channel format header byte. |

