libtinylor
Single-file header library for controlling Light-O-Rama hardware
Loading...
Searching...
No Matches
tinylor_test.c File Reference
#include <assert.h>
#include "tinylor.h"
Include dependency graph for tinylor_test.c:

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)
 

Function Documentation

◆ main()

int main ( void )
Here is the call graph for this function:

◆ test_channel_alignment()

static void test_channel_alignment ( const lor_channel first,
const unsigned short cbits,
const lor_channel_set expected )
static

Tests the channel alignment calculation.

Parameters
firstThe first channel to encode.
cbits16-bit bitset of channels relative to first to encode.
expectedThe expected channel alignment result.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_channel_format_header()

static void test_channel_format_header ( const unsigned short cbits,
const lor_channel_format expected )
static

Tests the channel format header byte selection.

Parameters
cbits16-bit bitset of channels to encode.
expectedThe expected channel format header byte.
Here is the call graph for this function:
Here is the caller graph for this function: