fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
Loading...
Searching...
No Matches
crmap.h
Go to the documentation of this file.
1
3#ifndef FPLAYER_CRMAP_H
4#define FPLAYER_CRMAP_H
5
6#include <stdint.h>
7
11struct cr_s;
12
20int CMap_read(const char* fp, struct cr_s** cr);
21
25void CMap_free(struct cr_s* cr);
26
35int CMap_lookup(const struct cr_s* cr,
36 uint32_t id,
37 uint8_t* unit,
38 uint16_t* circuit);
39
40#endif//FPLAYER_CRMAP_H
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....
Definition crmap.c:172
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...
Definition crmap.c:130
void CMap_free(struct cr_s *cr)
Frees the given channel range map by walking the linked list and freeing each node.
Definition crmap.c:165
Channel range node that maps sequence channel indices to unit and circuit numbers.
Definition crmap.c:13
uint8_t unit
Unit ID.
Definition crmap.c:16