no-OS
|
Header file of AD9208 Driver. More...
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include "ad9208_api.h"
#include "ad9208_reg.h"
#include "no_os_gpio.h"
#include "no_os_spi.h"
#include "no_os_delay.h"
Go to the source code of this file.
Classes | |
struct | ad9208_ddc |
struct | ad9208_dev |
struct | ad9208_state |
struct | ad9208_init_param |
Macros | |
#define | AD9208_FULL_BANDWIDTH_MODE 0 |
#define | AD9208_1_DDC_MODE 1 |
#define | AD9208_2_DDC_MODE 2 |
#define | AD9208_4_DDC_MODE 4 |
#define | AD9208_SYSREF_NONE 0 /* No SYSREF Support */ |
#define | AD9208_SYSREF_ONESHOT 1 /* ONE-SHOT SYSREF */ |
#define | AD9208_SYSREF_CONT 2 /* Continuous Sysref Synchronisation */ |
#define | AD9208_SYSREF_MON 3 /* SYSREF monitor Mode */ |
#define | AD9208_NCO_MODE_VIF 0 /* Variable IF Mode */ |
#define | AD9208_NCO_MODE_ZIF 1 /* Zero IF Mode */ |
#define | AD9208_NCO_MODE_TEST 3 /* Test Mode*/ |
#define | AD9208_BUFF_CURR_400_UA 0x4 /* Buffer Current set to 400 uA */ |
#define | AD9208_BUFF_CURR_500_UA 0x9 /* Buffer Current set to 500 uA */ |
#define | AD9208_BUFF_CURR_600_UA 0x1E /* Buffer Current set to 600 uA */ |
#define | AD9208_BUFF_CURR_700_UA 0x23 /* Buffer Current set to 700 uA */ |
#define | AD9208_BUFF_CURR_800_UA 0x28 /* Buffer Current set to 800 uA */ |
#define | AD9208_BUFF_CURR_1000_UA 0x32 /* Buffer Current set to 1000 uA */ |
#define | AD9208_CHIP_TYPE 0x03 |
#define | AD9208_CHIP_ID 0xDF |
Typedefs | |
typedef struct ad9208_dev | ad9208_dev |
typedef struct ad9208_init_param | ad9208_init_param |
Functions | |
int32_t | ad9208_initialize (ad9208_dev **device, ad9208_init_param *init_param) |
int32_t | ad9208_remove (ad9208_dev *device) |
Header file of AD9208 Driver.
AD9208 API interface header file.
Copyright 2019(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This file contains all the publicly exposed methods and data structures to interface with the AD9208 API.
Release 1.0.X
Copyright(c) 2017 Analog Devices, Inc. All Rights Reserved. This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.
#define AD9208_1_DDC_MODE 1 |
#define AD9208_2_DDC_MODE 2 |
#define AD9208_4_DDC_MODE 4 |
#define AD9208_BUFF_CURR_1000_UA 0x32 /* Buffer Current set to 1000 uA */ |
#define AD9208_BUFF_CURR_400_UA 0x4 /* Buffer Current set to 400 uA */ |
#define AD9208_BUFF_CURR_500_UA 0x9 /* Buffer Current set to 500 uA */ |
#define AD9208_BUFF_CURR_600_UA 0x1E /* Buffer Current set to 600 uA */ |
#define AD9208_BUFF_CURR_700_UA 0x23 /* Buffer Current set to 700 uA */ |
#define AD9208_BUFF_CURR_800_UA 0x28 /* Buffer Current set to 800 uA */ |
#define AD9208_CHIP_ID 0xDF |
#define AD9208_CHIP_TYPE 0x03 |
#define AD9208_FULL_BANDWIDTH_MODE 0 |
#define AD9208_NCO_MODE_TEST 3 /* Test Mode*/ |
#define AD9208_NCO_MODE_VIF 0 /* Variable IF Mode */ |
#define AD9208_NCO_MODE_ZIF 1 /* Zero IF Mode */ |
#define AD9208_SYSREF_CONT 2 /* Continuous Sysref Synchronisation */ |
#define AD9208_SYSREF_MON 3 /* SYSREF monitor Mode */ |
#define AD9208_SYSREF_NONE 0 /* No SYSREF Support */ |
#define AD9208_SYSREF_ONESHOT 1 /* ONE-SHOT SYSREF */ |
typedef struct ad9208_dev ad9208_dev |
typedef struct ad9208_init_param ad9208_init_param |
int32_t ad9208_initialize | ( | ad9208_dev ** | device, |
ad9208_init_param * | init_param | ||
) |
Initialize the device.
device | - The device structure. |
init_param | - The structure that contains the device initial parameters. |
int32_t ad9208_remove | ( | ad9208_dev * | device | ) |