RisingBoolDetector
struct RisingBoolDetector¶
A simple rising edge detector for boolean triggers. Outputs a boolean True trigger when the input transitions from False to True.
Traits: AnyType, Copyable, Movable, Representable, UnknownDestructibility
RisingBoolDetector Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| num_chans | Int |
1 |
The size of the SIMD vector - defaults to 1. |
RisingBoolDetector Functions¶
struct RisingBoolDetector . fn init¶
struct RisingBoolDetector . fn next¶
Check if a trigger has occurred (rising edge) per SIMD lane.
fn next Signature
fn next Arguments
| Name | Type | Default | Description |
|---|---|---|---|
| trig | SIMD |
— | The input boolean SIMD vector to check for rising edges. Each SIMD lane is processed independently. |
fn next Returns
: SIMD
A SIMD boolean vector outputting single sample boolean triggers which indicate the rising edge detection for each lane.
struct ToggleBool¶
A simple rising edge detector for boolean triggers.
Traits: AnyType, Copyable, Movable, Representable, UnknownDestructibility
ToggleBool Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| num_chans | Int |
1 |
The size of the SIMD vector - defaults to 1. |
ToggleBool Functions¶
struct ToggleBool . fn init¶
Initialize the ToggleBool struct.
fn init Signature
fn init Returns
: Self
Static Method
This is a static method.
struct ToggleBool . fn next¶
Check if a trigger has occurred (rising edge) per SIMD lane.
fn next Signature
fn next Arguments
| Name | Type | Default | Description |
|---|---|---|---|
| trig | SIMD |
— | The input boolean SIMD vector to check for rising edges. Each SIMD lane is processed independently. |
fn next Returns
: SIMD
A SIMD boolean vector indicating the toggled state for each lane.
Documentation generated with mojo doc from Mojo version 0.25.6.1