Loading...
Searching...
No Matches
digital_sequence.h
Go to the documentation of this file.
1
31#pragma once
32
33#include <furi_hal_gpio.h>
34
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41typedef struct DigitalSequence DigitalSequence;
42
50DigitalSequence* digital_sequence_alloc(uint32_t size, const GpioPin* gpio);
51
58
73 DigitalSequence* sequence,
74 uint8_t signal_index,
75 const DigitalSignal* signal);
76
85void digital_sequence_add_signal(DigitalSequence* sequence, uint8_t signal_index);
86
99
109
110#ifdef __cplusplus
111}
112#endif
void digital_sequence_register_signal(DigitalSequence *sequence, uint8_t signal_index, const DigitalSignal *signal)
Register a signal within a DigitalSequence instance by its index.
Definition digital_sequence.c:115
void digital_sequence_transmit(DigitalSequence *sequence)
Transmit the sequence contained in the DigitalSequence instance.
Definition digital_sequence.c:283
void digital_sequence_clear(DigitalSequence *sequence)
Clear the signal sequence in a DigitalSequence instance.
Definition digital_sequence.c:378
DigitalSequence * digital_sequence_alloc(uint32_t size, const GpioPin *gpio)
Allocate a DigitalSequence instance of a given size which will operate on a set GPIO pin.
Definition digital_sequence.c:73
void digital_sequence_add_signal(DigitalSequence *sequence, uint8_t signal_index)
Append a signal index to a DigitalSequence instance.
Definition digital_sequence.c:126
void digital_sequence_free(DigitalSequence *sequence)
Delete a previously allocated DigitalSequence instance.
Definition digital_sequence.c:109
Simple digital signal container for the DigitalSequence library.
Definition digital_sequence.c:56
DigitalSignal structure type.
Definition digital_signal_i.h:17
Gpio structure.
Definition furi_hal_gpio.h:161