Skip to content

Incorrect usage of the overload bit in the skiq_rx_block_t to detect an "overflow".  #3

@crroush

Description

@crroush

The sidekiq_core/inc/sidekiq_types.h defines overload as:

volatile uint64_t overload:1;     /**< @brief RF Overload (1 bit) indicating whether or
                                               * not the RF input was overloaded for the received
                                               * sample block */

In Streaming.cpp the overload is being treated as if it means overflow. There is an error message that gets returned when you call skiq_receive that will indicate there is an overrun, which from the logic I believe that is what you are trying to catch to reset things.
skiq_rx_status_error_overrun return check will give you the desired functionality. The way the logic works right now, it will reset buffers prematurely when overload state occurs, which is when the RF input is in excess of 0dBm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions