Overlay Task¶
rfsoc_rfdc.overlay_task
¶
Classes¶
OverlayTask
¶
Bases: ABC
An abstract base class for creating tasks to be run on an RFSoCOverlay.
Attributes:
| Name | Type | Description |
|---|---|---|
ol |
RFSoCOverlay
|
An instance of RFSoCOverlay to operate on. |
task_name |
str
|
The name of the task. |
thread |
Thread
|
The thread on which the task runs. |
Methods:
| Name | Description |
|---|---|
run |
An abstract method to define the task's behavior. |
start |
Starts the task's thread. |
join |
Waits for the task's thread to complete. |
Source code in rfsoc_rfdc/overlay_task.py
BlinkLedTask
¶
Bases: OverlayTask
A task that blinks LEDs on an RFSoCOverlay.
Inherits from OverlayTask.
Attributes:
| Name | Type | Description |
|---|---|---|
green_leds |
AxiGPIO
|
AxiGPIO instance for controlling green LEDs. |
red_leds |
AxiGPIO
|
AxiGPIO instance for controlling red LEDs. |
Methods:
| Name | Description |
|---|---|
run |
Implements the LED blinking behavior. |
Source code in rfsoc_rfdc/overlay_task.py
Functions¶
run()
¶
Runs the LED blinking task. Alternates the LEDs between on and off states at a fixed interval.