Kestrel Interface
Loading...
Searching...
No Matches
kest_fpga_comms.c File Reference
#include "kest_int.h"

Go to the source code of this file.

Data Structures

struct  kest_fpga_msg

Macros

#define PRINTLINES_ALLOWED   0
#define KEST_FPGA_MSG_TYPE_BATCH   0
#define KEST_FPGA_MSG_TYPE_PROGRAM_BATCH   1
#define KEST_FPGA_MSG_TYPE_SET_INPUT_GAIN   2
#define KEST_FPGA_MSG_TYPE_SET_OUTPUT_GAIN   3
#define KEST_FPGA_MSG_TYPE_COMMAND   4
#define FPGA_BOOT_MS   2000
#define PROGRAM_RETRIES   3

Functions

void kest_fpga_comms_task (void *param)
int kest_fpga_queue_transfer_batch (kest_fpga_transfer_batch batch)
int kest_fpga_queue_program_batch (kest_fpga_transfer_batch batch)
int kest_fpga_queue_input_gain_set (float gain_db)
int kest_fpga_queue_output_gain_set (float gain_db)
int kest_fpga_queue_register_commit ()

Macro Definition Documentation

◆ FPGA_BOOT_MS

#define FPGA_BOOT_MS   2000

Definition at line 15 of file kest_fpga_comms.c.

Referenced by kest_fpga_comms_task().

◆ KEST_FPGA_MSG_TYPE_BATCH

#define KEST_FPGA_MSG_TYPE_BATCH   0

Definition at line 9 of file kest_fpga_comms.c.

Referenced by kest_fpga_comms_task(), and kest_fpga_queue_transfer_batch().

◆ KEST_FPGA_MSG_TYPE_COMMAND

#define KEST_FPGA_MSG_TYPE_COMMAND   4

Definition at line 13 of file kest_fpga_comms.c.

Referenced by kest_fpga_comms_task(), and kest_fpga_queue_register_commit().

◆ KEST_FPGA_MSG_TYPE_PROGRAM_BATCH

#define KEST_FPGA_MSG_TYPE_PROGRAM_BATCH   1

Definition at line 10 of file kest_fpga_comms.c.

Referenced by kest_fpga_comms_task(), and kest_fpga_queue_program_batch().

◆ KEST_FPGA_MSG_TYPE_SET_INPUT_GAIN

#define KEST_FPGA_MSG_TYPE_SET_INPUT_GAIN   2

Definition at line 11 of file kest_fpga_comms.c.

Referenced by kest_fpga_comms_task(), and kest_fpga_queue_input_gain_set().

◆ KEST_FPGA_MSG_TYPE_SET_OUTPUT_GAIN

#define KEST_FPGA_MSG_TYPE_SET_OUTPUT_GAIN   3

Definition at line 12 of file kest_fpga_comms.c.

Referenced by kest_fpga_comms_task(), and kest_fpga_queue_output_gain_set().

◆ PRINTLINES_ALLOWED

#define PRINTLINES_ALLOWED   0

Definition at line 4 of file kest_fpga_comms.c.

◆ PROGRAM_RETRIES

#define PROGRAM_RETRIES   3

Definition at line 30 of file kest_fpga_comms.c.

Referenced by kest_fpga_comms_task().

Function Documentation

◆ kest_fpga_comms_task()

void kest_fpga_comms_task ( void * param)

Definition at line 32 of file kest_fpga_comms.c.

Referenced by app_main(), and main_task().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kest_fpga_queue_input_gain_set()

int kest_fpga_queue_input_gain_set ( float gain_db)

Definition at line 152 of file kest_fpga_comms.c.

◆ kest_fpga_queue_output_gain_set()

int kest_fpga_queue_output_gain_set ( float gain_db)

Definition at line 162 of file kest_fpga_comms.c.

◆ kest_fpga_queue_program_batch()

int kest_fpga_queue_program_batch ( kest_fpga_transfer_batch batch)

Definition at line 139 of file kest_fpga_comms.c.

Referenced by kest_profile_program_fpga().

Here is the caller graph for this function:

◆ kest_fpga_queue_register_commit()

int kest_fpga_queue_register_commit ( )

Definition at line 172 of file kest_fpga_comms.c.

◆ kest_fpga_queue_transfer_batch()

int kest_fpga_queue_transfer_batch ( kest_fpga_transfer_batch batch)

Definition at line 127 of file kest_fpga_comms.c.

Referenced by kest_effect_update_fpga_registers().

Here is the caller graph for this function: