|
Kestrel Interface
|
Go to the source code of this file.
Data Structures | |
| struct | kest_fpga_transfer_batch |
Macros | |
| #define | KEST_FPGA_SAMPLE_RATE 44100 |
| #define | COMMAND_BEGIN_PROGRAM 1 |
| #define | COMMAND_WRITE_BLOCK_INSTR 2 |
| #define | COMMAND_WRITE_BLOCK_REG_0 3 |
| #define | COMMAND_WRITE_BLOCK_REG_1 4 |
| #define | COMMAND_ALLOC_DELAY 5 |
| #define | COMMAND_END_PROGRAM 10 |
| #define | COMMAND_SET_INPUT_GAIN 11 |
| #define | COMMAND_SET_OUTPUT_GAIN 12 |
| #define | COMMAND_UPDATE_BLOCK_REG_0 13 |
| #define | COMMAND_UPDATE_BLOCK_REG_1 14 |
| #define | COMMAND_COMMIT_REG_UPDATES 15 |
| #define | COMMAND_ALLOC_FILTER 16 |
| #define | COMMAND_WRITE_FILTER_COEF 17 |
| #define | COMMAND_UPDATE_FILTER_COEF 18 |
| #define | COMMAND_COMMIT_FILTER_COEF 19 |
| #define | SPI_RESPONSE_OK 0 |
| #define | SPI_RESPONSE_INITIALISING 1 |
| #define | SPI_RESPONSE_PROGRAMMING 2 |
| #define | SPI_RESPONSE_REJECTED 3 |
| #define | SPI_RESPONSE_TIMEOUT 4 |
| #define | KEST_FPGA_N_BLOCKS 256 |
| #define | KEST_FPGA_BLOCK_ADDR_BYTES 1 |
| #define | KEST_FPGA_DATA_WIDTH 16 |
| #define | KEST_FPGA_FILTER_WIDTH 18 |
| #define | KEST_FPGA_DATA_BYTES (KEST_FPGA_DATA_WIDTH / 8) |
Typedefs | |
| typedef uint8_t | kest_fpga_block_addr_t |
| typedef int16_t | kest_fpga_sample_t |
Functions | |
| kest_fpga_transfer_batch | kest_new_fpga_transfer_batch () |
| void | kest_free_fpga_transfer_batch (kest_fpga_transfer_batch batch) |
| int | kest_send_bytes_to_fpga (uint8_t *buf, int n) |
| int | kest_send_byte_to_fpga (uint8_t byte) |
| int | kest_fpga_send_byte (uint8_t byte) |
| uint8_t | kest_fpga_read_byte () |
| void | kest_fpga_set_input_gain (float gain_db) |
| void | kest_fpga_set_output_gain (float gain_db) |
| void | kest_fpga_commit_reg_updates () |
| int | kest_fpga_batch_append (kest_fpga_transfer_batch *seq, uint8_t x) |
| int | kest_fpga_batch_append_16 (kest_fpga_transfer_batch *seq, uint16_t x) |
| int | kest_fpga_batch_append_24 (kest_fpga_transfer_batch *seq, uint32_t x) |
| int | kest_fpga_batch_append_32 (kest_fpga_transfer_batch *seq, uint32_t x) |
| int | kest_fpga_transfer_batch_send (kest_fpga_transfer_batch batch) |
| int | kest_fpga_spi_init () |
| char * | kest_fpga_command_to_string (int command) |
| #define COMMAND_ALLOC_DELAY 5 |
Definition at line 12 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_append_resource(), kest_fpga_batch_print(), and kest_fpga_command_to_string().
| #define COMMAND_ALLOC_FILTER 16 |
Definition at line 19 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_append_resource(), and kest_fpga_batch_print().
| #define COMMAND_BEGIN_PROGRAM 1 |
Definition at line 8 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_print(), kest_fpga_command_to_string(), and kest_pipeline_create_fpga_transfer_batch().
| #define COMMAND_COMMIT_FILTER_COEF 19 |
Definition at line 22 of file kest_fpga_io.h.
| #define COMMAND_COMMIT_REG_UPDATES 15 |
Definition at line 18 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_print(), kest_fpga_command_to_string(), kest_fpga_commit_reg_updates(), and kest_fpga_queue_register_commit().
| #define COMMAND_END_PROGRAM 10 |
Definition at line 13 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_print(), kest_fpga_command_to_string(), and kest_pipeline_create_fpga_transfer_batch().
| #define COMMAND_SET_INPUT_GAIN 11 |
Definition at line 14 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_print(), kest_fpga_command_to_string(), and kest_fpga_set_input_gain().
| #define COMMAND_SET_OUTPUT_GAIN 12 |
Definition at line 15 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_print(), kest_fpga_command_to_string(), and kest_fpga_set_output_gain().
| #define COMMAND_UPDATE_BLOCK_REG_0 13 |
Definition at line 16 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_append_block_register_updates(), kest_fpga_batch_print(), and kest_fpga_command_to_string().
| #define COMMAND_UPDATE_BLOCK_REG_1 14 |
Definition at line 17 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_append_block_register_updates(), kest_fpga_batch_print(), and kest_fpga_command_to_string().
| #define COMMAND_UPDATE_FILTER_COEF 18 |
Definition at line 21 of file kest_fpga_io.h.
| #define COMMAND_WRITE_BLOCK_INSTR 2 |
Definition at line 9 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_append_block_instr(), kest_fpga_batch_print(), and kest_fpga_command_to_string().
| #define COMMAND_WRITE_BLOCK_REG_0 3 |
Definition at line 10 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_append_block_regs(), kest_fpga_batch_print(), and kest_fpga_command_to_string().
| #define COMMAND_WRITE_BLOCK_REG_1 4 |
Definition at line 11 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_append_block_regs(), kest_fpga_batch_print(), and kest_fpga_command_to_string().
| #define COMMAND_WRITE_FILTER_COEF 17 |
Definition at line 20 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_append_resource(), and kest_fpga_batch_print().
| #define KEST_FPGA_BLOCK_ADDR_BYTES 1 |
Definition at line 36 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_print().
| #define KEST_FPGA_DATA_BYTES (KEST_FPGA_DATA_WIDTH / 8) |
Definition at line 42 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_print().
| #define KEST_FPGA_DATA_WIDTH 16 |
Definition at line 40 of file kest_fpga_io.h.
Referenced by float_to_q_nminus1(), and kest_compute_register_formats().
| #define KEST_FPGA_FILTER_WIDTH 18 |
Definition at line 41 of file kest_fpga_io.h.
Referenced by kest_filter_compute_format(), and kest_fpga_batch_append_resource().
| #define KEST_FPGA_N_BLOCKS 256 |
Definition at line 30 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_append_block_number(), and kest_new_fpga_transfer_batch().
| #define KEST_FPGA_SAMPLE_RATE 44100 |
Definition at line 4 of file kest_fpga_io.h.
Referenced by kest_fpga_batch_append_resource().
| #define SPI_RESPONSE_INITIALISING 1 |
Definition at line 25 of file kest_fpga_io.h.
| #define SPI_RESPONSE_OK 0 |
Definition at line 24 of file kest_fpga_io.h.
Referenced by kest_fpga_comms_task().
| #define SPI_RESPONSE_PROGRAMMING 2 |
Definition at line 26 of file kest_fpga_io.h.
| #define SPI_RESPONSE_REJECTED 3 |
Definition at line 27 of file kest_fpga_io.h.
| #define SPI_RESPONSE_TIMEOUT 4 |
Definition at line 28 of file kest_fpga_io.h.
| typedef uint8_t kest_fpga_block_addr_t |
Definition at line 37 of file kest_fpga_io.h.
| typedef int16_t kest_fpga_sample_t |
Definition at line 45 of file kest_fpga_io.h.
| int kest_fpga_batch_append | ( | kest_fpga_transfer_batch * | seq, |
| uint8_t | x ) |
Definition at line 126 of file kest_fpga_io.c.
Referenced by kest_fpga_batch_append_16(), kest_fpga_batch_append_24(), kest_fpga_batch_append_32(), kest_fpga_batch_append_block_instr(), kest_fpga_batch_append_block_number(), kest_fpga_batch_append_block_register_updates(), kest_fpga_batch_append_block_regs(), kest_fpga_batch_append_resource(), and kest_pipeline_create_fpga_transfer_batch().
| int kest_fpga_batch_append_16 | ( | kest_fpga_transfer_batch * | seq, |
| uint16_t | x ) |
Definition at line 148 of file kest_fpga_io.c.
Referenced by kest_fpga_batch_append_block_number(), kest_fpga_batch_append_block_register_updates(), kest_fpga_batch_append_block_regs(), and kest_fpga_batch_append_resource().
| int kest_fpga_batch_append_24 | ( | kest_fpga_transfer_batch * | seq, |
| uint32_t | x ) |
Definition at line 164 of file kest_fpga_io.c.
Referenced by kest_fpga_batch_append_resource().
| int kest_fpga_batch_append_32 | ( | kest_fpga_transfer_batch * | seq, |
| uint32_t | x ) |
Definition at line 181 of file kest_fpga_io.c.
Referenced by kest_fpga_batch_append_block_instr().
| char * kest_fpga_command_to_string | ( | int | command | ) |
Definition at line 271 of file kest_fpga_io.c.
Referenced by kest_fpga_comms_task().
| void kest_fpga_commit_reg_updates | ( | ) |
| uint8_t kest_fpga_read_byte | ( | ) |
Definition at line 101 of file kest_fpga_io.c.
Referenced by kest_fpga_comms_task().
| int kest_fpga_send_byte | ( | uint8_t | byte | ) |
Definition at line 96 of file kest_fpga_io.c.
Referenced by kest_fpga_commit_reg_updates(), kest_fpga_comms_task(), kest_fpga_set_input_gain(), and kest_fpga_set_output_gain().
| void kest_fpga_set_input_gain | ( | float | gain_db | ) |
Definition at line 245 of file kest_fpga_io.c.
Referenced by kest_fpga_comms_task().
| void kest_fpga_set_output_gain | ( | float | gain_db | ) |
Definition at line 255 of file kest_fpga_io.c.
Referenced by kest_fpga_comms_task().
| int kest_fpga_spi_init | ( | ) |
Definition at line 20 of file kest_fpga_io.c.
Referenced by kest_fpga_comms_task().
| int kest_fpga_transfer_batch_send | ( | kest_fpga_transfer_batch | batch | ) |
Definition at line 240 of file kest_fpga_io.c.
Referenced by kest_fpga_comms_task().
| void kest_free_fpga_transfer_batch | ( | kest_fpga_transfer_batch | batch | ) |
Definition at line 121 of file kest_fpga_io.c.
Referenced by kest_fpga_comms_task(), and kest_pipeline_create_fpga_transfer_batch().
| kest_fpga_transfer_batch kest_new_fpga_transfer_batch | ( | ) |
Definition at line 109 of file kest_fpga_io.c.
Referenced by kest_effect_update_fpga_registers(), and kest_pipeline_create_fpga_transfer_batch().
| int kest_send_byte_to_fpga | ( | uint8_t | byte | ) |
| int kest_send_bytes_to_fpga | ( | uint8_t * | buf, |
| int | n ) |