mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-02-20 00:33:48 +01:00
Co-authored-by: mndza <diego.hdmp@gmail.com> Co-authored-by: Martin Ling <martin-git@earth.li> Co-authored-by: Antoine van Gelder <antoine@greatscottgadgets.com>
56 lines
1.4 KiB
C
56 lines
1.4 KiB
C
/*
|
|
* Copyright 2025 Great Scott Gadgets <info@greatscottgadgets.com>
|
|
*
|
|
* This file is part of HackRF.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; see the file COPYING. If not, write to
|
|
* the Free Software Foundation, Inc., 51 Franklin Street,
|
|
* Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef __SELFTEST_H
|
|
#define __SELFTEST_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
uint16_t mixer_id;
|
|
#ifdef PRALINE
|
|
bool max2831_ld_test_ok;
|
|
#else
|
|
uint16_t max283x_readback_bad_value;
|
|
uint16_t max283x_readback_expected_value;
|
|
uint8_t max283x_readback_register_count;
|
|
uint8_t max283x_readback_total_registers;
|
|
#endif
|
|
uint8_t si5351_rev_id;
|
|
bool si5351_readback_ok;
|
|
#ifndef RAD1O
|
|
bool rtc_osc_ok;
|
|
#endif
|
|
#ifdef PRALINE
|
|
bool sgpio_rx_ok;
|
|
bool xcvr_loopback_ok;
|
|
#endif
|
|
struct {
|
|
bool pass;
|
|
char msg[511];
|
|
} report;
|
|
} selftest_t;
|
|
|
|
extern selftest_t selftest;
|
|
|
|
#endif // __SELFTEST_H
|