HARMcksL: ARM HAL toolbox (yet STM32 oriented) 1.6
SMFSW collection of HAL hacks for STM32
|
Logic output structure. More...
#include <Logic_out.h>
Data Fields | ||
volatile GPIO_PinState | currentState | |
Current Logic output state (Reset/Set) | ||
GPIO_PinState | memState | |
Memorized Logic output state (Reset/Set), used after Pulse or Blink stop. | ||
eLogic_out_mode | mode | |
Current Logic output mode. | ||
uint32_t | cnt | |
Blinking counter. | ||
uint32_t | delay | |
Delay before action. | ||
uint32_t | timeActive | |
Active time (used for Pulse) | ||
uint32_t | timeInactive | |
Inactive time (used for Pulse and Blink) | ||
uint32_t | hOut | |
Start time of the current phase. | ||
eGPIOState | action | |
Action to perform. | ||
bool | infinite:1 | |
Infinite blinking (only if count received is 0 when starting Blink action) | ||
bool | start:1 | |
Action start step. | ||
bool | active:1 | |
Pulse/Blink active phase. | ||
bool | init:1 | |
Set to 1 when GPIO_out instance properly initialized. | ||
volatile bool | idle:1 | |
Action state (idle / running) | ||
struct { | ||
void(* set )(const struct Logic_out *const, const GPIO_PinState) | ||
Setter function. More... | ||
void * LOGx | ||
Logic output address. More... | ||
uint16_t LOG_Pos | ||
Logic output bit position. More... | ||
GPIO_PinState polarity | ||
Logic output polarity. More... | ||
} | cfg | |
Logic output structure.
eGPIOState Logic_out::action |
Action to perform.
bool Logic_out::active |
Pulse/Blink active phase.
struct { ... } Logic_out::cfg |
uint32_t Logic_out::cnt |
Blinking counter.
volatile GPIO_PinState Logic_out::currentState |
Current Logic output state (Reset/Set)
uint32_t Logic_out::delay |
Delay before action.
uint32_t Logic_out::hOut |
Start time of the current phase.
volatile bool Logic_out::idle |
Action state (idle / running)
bool Logic_out::infinite |
Infinite blinking (only if count received is 0 when starting Blink action)
bool Logic_out::init |
Set to 1 when GPIO_out instance properly initialized.
uint16_t Logic_out::LOG_Pos |
Logic output bit position.
void* Logic_out::LOGx |
Logic output address.
GPIO_PinState Logic_out::memState |
Memorized Logic output state (Reset/Set), used after Pulse or Blink stop.
eLogic_out_mode Logic_out::mode |
Current Logic output mode.
GPIO_PinState Logic_out::polarity |
Logic output polarity.
void(* Logic_out::set) (const struct Logic_out *const, const GPIO_PinState) |
Setter function.
bool Logic_out::start |
Action start step.
uint32_t Logic_out::timeActive |
Active time (used for Pulse)
uint32_t Logic_out::timeInactive |
Inactive time (used for Pulse and Blink)