fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
Loading...
Searching...
No Matches
putil.h
Go to the documentation of this file.
1
3#ifndef FPLAYER_PUTIL_H
4#define FPLAYER_PUTIL_H
5
6#include <stdint.h>
7
8struct serialdev_s;
9
17int PU_wait(struct serialdev_s* sdev, unsigned int seconds);
18
22int PU_lightsOff(struct serialdev_s* sdev);
23
24struct tf_header_t;
25
31long PU_secondsRemaining(uint32_t frame, const struct tf_header_t* seq);
32
36int PU_writeHeartbeat(struct serialdev_s* sdev);
37
38struct ctgroup_s;
39
47int PU_writeEffect(struct serialdev_s* sdev,
48 const struct ctgroup_s* group,
49 uint32_t* accum);
50
51struct FC;
52
61int PU_playFirstAudio(const char* audiofp,
62 struct FC* fc,
63 const struct tf_header_t* seq);
64
65#endif//FPLAYER_PUTIL_H
char * audiofp
Audio override file path.
Definition main.c:61
int PU_wait(struct serialdev_s *sdev, unsigned int seconds)
Waits for the given number of seconds by blocking the current thread. LOR heartbeat messages will int...
Definition putil.c:24
long PU_secondsRemaining(uint32_t frame, const struct tf_header_t *seq)
Returns the seconds remaining in the sequence based on the current frame and sequence configuration p...
Definition putil.c:69
int PU_writeEffect(struct serialdev_s *sdev, const struct ctgroup_s *group, uint32_t *accum)
Encodes the given channel group state update to the provided message buffer as a LOR effect....
Definition putil.c:84
int PU_playFirstAudio(const char *audiofp, struct FC *fc, const struct tf_header_t *seq)
If audiofp is not NULL, this function will attempt to play the audio file at the given path....
Definition putil.c:115
int PU_writeHeartbeat(struct serialdev_s *sdev)
Encodes and writes a LOR heartbeat message to the serial port.
Definition putil.c:76
int PU_lightsOff(struct serialdev_s *sdev)
Turns off all lights by sending a set off effect to all LOR units.
Definition putil.c:53
File controller that wraps a stdlib file pointer and provides additional functionality for reading fi...
Definition fc.c:10
Represents a group of linked cells that share the same unit number, channel selection bitmask,...
Definition cell.h:44
Serial port communication device.
Definition serial.c:14