Loading...
Searching...
No Matches
digital_signal_i.h
Go to the documentation of this file.
1
8#include <stdint.h>
9#include <stdbool.h>
10
11#define DIGITAL_SIGNAL_T_TIM 1562
12#define DIGITAL_SIGNAL_T_TIM_DIV2 (DIGITAL_SIGNAL_T_TIM / 2)
19 uint32_t size;
20 uint32_t max_size;
21 int32_t remainder;
22 uint32_t data[];
23};
DigitalSignal structure type.
Definition digital_signal_i.h:17
bool start_level
The level to begin the signal with.
Definition digital_signal_i.h:18
uint32_t max_size
Maximum period count this instance can hold.
Definition digital_signal_i.h:20
uint32_t data[]
The array of time periods.
Definition digital_signal_i.h:22
uint32_t size
Current period count contained in the instance.
Definition digital_signal_i.h:19
int32_t remainder
Remainder left after converting all periods into timer ticks.
Definition digital_signal_i.h:21