driver ad9833 output test header file
uint8_t ad9833_set_internal_clock_disable(ad9833_handle_t *handle, ad9833_bool_t enable)
enable or disable internal clock disable
uint8_t ad9833_set_frequency_lsb(ad9833_handle_t *handle, ad9833_number_t number, uint16_t freq)
set the frequency lsb
uint8_t ad9833_frequency_convert_to_register(ad9833_handle_t *handle, double hz, uint32_t *reg)
convert the frequency to the register raw data
ad9833_number_t
ad9833 number enumeration definition
uint8_t ad9833_set_frequency_msb(ad9833_handle_t *handle, ad9833_number_t number, uint16_t freq)
set the frequency msb
uint8_t ad9833_set_dac_power_down(ad9833_handle_t *handle, ad9833_bool_t enable)
enable or disable dac power down
struct ad9833_handle_s ad9833_handle_t
ad9833 handle structure definition
uint8_t ad9833_set_used_frequency_register(ad9833_handle_t *handle, ad9833_number_t number)
set the used frequency register
uint8_t ad9833_phase_convert_to_register(ad9833_handle_t *handle, double rad, uint16_t *reg)
convert the phase to the register raw data
struct ad9833_info_s ad9833_info_t
ad9833 information structure definition
uint8_t ad9833_phase_convert_to_data(ad9833_handle_t *handle, uint16_t reg, double *rad)
convert the register raw data to phase
uint8_t ad9833_set_output_mode(ad9833_handle_t *handle, ad9833_output_mode_t mode)
set output mode
uint8_t ad9833_init(ad9833_handle_t *handle)
initialize the chip
uint8_t ad9833_set_frequency(ad9833_handle_t *handle, ad9833_number_t number, uint32_t freq)
set the frequency
uint8_t ad9833_reset(ad9833_handle_t *handle)
reset the chip
uint8_t ad9833_deinit(ad9833_handle_t *handle)
close the chip
uint8_t ad9833_set_used_phase_register(ad9833_handle_t *handle, ad9833_number_t number)
set the used phase register
uint8_t ad9833_set_phase(ad9833_handle_t *handle, ad9833_number_t number, uint16_t phase)
set the phase
uint8_t ad9833_info(ad9833_info_t *info)
get chip's information
uint8_t ad9833_frequency_convert_to_data(ad9833_handle_t *handle, uint32_t reg, double *hz)
convert the register raw data to frequency
@ AD9833_OUTPUT_MODE_DAC_HALF
void ad9833_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t ad9833_interface_spi_write_cmd(uint8_t *buf, uint16_t len)
interface spi bus write command
uint8_t ad9833_interface_spi_init(void)
interface spi bus init
uint8_t ad9833_interface_spi_deinit(void)
interface spi bus deinit
void ad9833_interface_delay_ms(uint32_t ms)
interface delay ms
#define DRIVER_AD9833_LINK_SPI_DEINIT(HANDLE, FUC)
link spi_deinit function
#define DRIVER_AD9833_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_AD9833_LINK_SPI_INIT(HANDLE, FUC)
link spi_init function
#define DRIVER_AD9833_LINK_INIT(HANDLE, STRUCTURE)
initialize ad9833_handle_t structure
#define DRIVER_AD9833_LINK_SPI_WRITE_CMD(HANDLE, FUC)
link spi_write_cmd function
#define DRIVER_AD9833_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
uint8_t ad9833_output_test(ad9833_number_t number, uint32_t ms)
output test
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v