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