|
fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
|
Channel range map interface. More...
#include <stdint.h>

Go to the source code of this file.
Functions | |
| int | CMap_read (const char *fp, struct cr_s **cr) |
Reads a channel range map from the given file path. The channel range map is a linked list of channel range nodes that map sequence channel indices to unit and circuit numbers. The caller is responsible for freeing the returned channel range map using CMap_free. | |
| void | CMap_free (struct cr_s *cr) |
| Frees the given channel range map by walking the linked list and freeing each node. | |
| int | CMap_lookup (const struct cr_s *cr, uint32_t id, uint8_t *unit, uint16_t *circuit) |
Remaps the given sequence channel index to a unit and circuit number using the channel range mapping. The result is written to the given unit and circuit pointers. | |
Channel range map interface.
| void CMap_free | ( | struct cr_s * | cr | ) |
Frees the given channel range map by walking the linked list and freeing each node.
| cr | channel range map to free |

| int CMap_lookup | ( | const struct cr_s * | cr, |
| uint32_t | id, | ||
| uint8_t * | unit, | ||
| uint16_t * | circuit ) |
Remaps the given sequence channel index to a unit and circuit number using the channel range mapping. The result is written to the given unit and circuit pointers.
| cr | channel range map to use for remapping |
| id | sequence channel index to remap |
| unit | pointer to write the unit number to |
| circuit | pointer to write the circuit number to |

| int CMap_read | ( | const char * | fp, |
| struct cr_s ** | cr ) |
Reads a channel range map from the given file path. The channel range map is a linked list of channel range nodes that map sequence channel indices to unit and circuit numbers. The caller is responsible for freeing the returned channel range map using CMap_free.
| fp | file path to read from |
| cr | pointer to write the channel range map to |

