Kestrel Interface
Loading...
Searching...
No Matches
kest_hfunc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define binary_max(x, y)
#define binary_min(x, y)
#define sqr(x)
#define IBM(x)
#define range_bits(x, n, start)
#define place_bits(x, y, val)

Functions

char * binary_print_n (uint32_t x, int n)
char * binary_print_8 (uint8_t x)
char * binary_print_16 (uint16_t x)
char * binary_print_24 (uint32_t x)
char * binary_print_32 (uint32_t x)
int format_float (char *buf, float val, int max_len)

Macro Definition Documentation

◆ binary_max

#define binary_max ( x,
y )
Value:
((x > y) ? x : y)

Definition at line 6 of file kest_hfunc.h.

Referenced by sw_field_save_cb().

◆ binary_min

#define binary_min ( x,
y )
Value:
((x > y) ? y : x)

Definition at line 7 of file kest_hfunc.h.

Referenced by sw_field_save_cb().

◆ IBM

#define IBM ( x)
Value:
((1u << (x)) - 1)

Definition at line 20 of file kest_hfunc.h.

Referenced by kest_fpga_batch_print().

◆ place_bits

#define place_bits ( x,
y,
val )
Value:
((IBM((x)-(y)+1) & ((uint32_t)val)) << y)
#define IBM(x)
Definition kest_hfunc.h:20

Definition at line 24 of file kest_hfunc.h.

Referenced by kest_encode_dsp_block_instr_type_a(), and kest_encode_dsp_block_instr_type_b().

◆ range_bits

#define range_bits ( x,
n,
start )

◆ sqr

#define sqr ( x)
Value:
(x * x)

Definition at line 9 of file kest_hfunc.h.

Function Documentation

◆ binary_print_16()

char * binary_print_16 ( uint16_t x)

Definition at line 30 of file kest_hfunc.c.

Referenced by kest_fpga_batch_print().

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

◆ binary_print_24()

char * binary_print_24 ( uint32_t x)

Definition at line 37 of file kest_hfunc.c.

Referenced by kest_fpga_batch_print().

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

◆ binary_print_32()

char * binary_print_32 ( uint32_t x)

Definition at line 42 of file kest_hfunc.c.

Here is the call graph for this function:

◆ binary_print_8()

char * binary_print_8 ( uint8_t x)

Definition at line 25 of file kest_hfunc.c.

Here is the call graph for this function:

◆ binary_print_n()

char * binary_print_n ( uint32_t x,
int n )

Definition at line 8 of file kest_hfunc.c.

Referenced by binary_print_16(), binary_print_24(), binary_print_32(), and binary_print_8().

Here is the caller graph for this function:

◆ format_float()

int format_float ( char * buf,
float val,
int max_len )

Definition at line 47 of file kest_hfunc.c.

Referenced by configure_parameter_widget(), format_parameter_widget_value_label(), and format_parameter_widget_value_label_v().

Here is the caller graph for this function: