Initial Commit

Dependencies:   platform_drivers AD5592R adi_console_menu

Committer:
EndaKilgarriff
Date:
Mon Jun 15 14:34:32 2020 +0000
Revision:
1:e84d8d51cd51
Initial Commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
EndaKilgarriff 1:e84d8d51cd51 1 /*!
EndaKilgarriff 1:e84d8d51cd51 2 *****************************************************************************
EndaKilgarriff 1:e84d8d51cd51 3 @file: ad5592r_reset_config.c
EndaKilgarriff 1:e84d8d51cd51 4 @brief: Device parameters, structure and reset condition settings
EndaKilgarriff 1:e84d8d51cd51 5 @details: Settings for device upon reset
EndaKilgarriff 1:e84d8d51cd51 6
EndaKilgarriff 1:e84d8d51cd51 7 -----------------------------------------------------------------------------
EndaKilgarriff 1:e84d8d51cd51 8 Copyright (c) 2020 Analog Devices, Inc.
EndaKilgarriff 1:e84d8d51cd51 9 All rights reserved.
EndaKilgarriff 1:e84d8d51cd51 10
EndaKilgarriff 1:e84d8d51cd51 11 This software is proprietary to Analog Devices, Inc. and its licensors.
EndaKilgarriff 1:e84d8d51cd51 12 By using this software you agree to the terms of the associated
EndaKilgarriff 1:e84d8d51cd51 13 Analog Devices Software License Agreement.
EndaKilgarriff 1:e84d8d51cd51 14 *****************************************************************************/
EndaKilgarriff 1:e84d8d51cd51 15
EndaKilgarriff 1:e84d8d51cd51 16 /******************************************************************************/
EndaKilgarriff 1:e84d8d51cd51 17 /***************************** Include Files **********************************/
EndaKilgarriff 1:e84d8d51cd51 18 /******************************************************************************/
EndaKilgarriff 1:e84d8d51cd51 19 #include "app_config.h"
EndaKilgarriff 1:e84d8d51cd51 20 #include "ad5592r-base.h"
EndaKilgarriff 1:e84d8d51cd51 21
EndaKilgarriff 1:e84d8d51cd51 22 /******************************************************************************/
EndaKilgarriff 1:e84d8d51cd51 23 /***************************** Constants **********************************/
EndaKilgarriff 1:e84d8d51cd51 24 /******************************************************************************/
EndaKilgarriff 1:e84d8d51cd51 25 const struct ad5592r_dev ad5592r_dev_reset = {
EndaKilgarriff 1:e84d8d51cd51 26 .ops = NULL,
EndaKilgarriff 1:e84d8d51cd51 27 .spi = NULL,
EndaKilgarriff 1:e84d8d51cd51 28 .i2c = NULL,
EndaKilgarriff 1:e84d8d51cd51 29 .spi_msg = 0,
EndaKilgarriff 1:e84d8d51cd51 30 .num_channels = NUM_CHANNELS,
EndaKilgarriff 1:e84d8d51cd51 31 .cached_dac = { 0, 0, 0, 0, 0, 0, 0 },
EndaKilgarriff 1:e84d8d51cd51 32 .cached_gp_ctrl = 0,
EndaKilgarriff 1:e84d8d51cd51 33 .channel_modes = {
EndaKilgarriff 1:e84d8d51cd51 34 CH_MODE_UNUSED,
EndaKilgarriff 1:e84d8d51cd51 35 CH_MODE_UNUSED,
EndaKilgarriff 1:e84d8d51cd51 36 CH_MODE_UNUSED,
EndaKilgarriff 1:e84d8d51cd51 37 CH_MODE_UNUSED,
EndaKilgarriff 1:e84d8d51cd51 38 CH_MODE_UNUSED,
EndaKilgarriff 1:e84d8d51cd51 39 CH_MODE_UNUSED,
EndaKilgarriff 1:e84d8d51cd51 40 CH_MODE_UNUSED,
EndaKilgarriff 1:e84d8d51cd51 41 CH_MODE_UNUSED
EndaKilgarriff 1:e84d8d51cd51 42 },
EndaKilgarriff 1:e84d8d51cd51 43 .channel_offstate = {
EndaKilgarriff 1:e84d8d51cd51 44 CH_OFFSTATE_PULLDOWN,
EndaKilgarriff 1:e84d8d51cd51 45 CH_OFFSTATE_PULLDOWN,
EndaKilgarriff 1:e84d8d51cd51 46 CH_OFFSTATE_PULLDOWN,
EndaKilgarriff 1:e84d8d51cd51 47 CH_OFFSTATE_PULLDOWN,
EndaKilgarriff 1:e84d8d51cd51 48 CH_OFFSTATE_PULLDOWN,
EndaKilgarriff 1:e84d8d51cd51 49 CH_OFFSTATE_PULLDOWN,
EndaKilgarriff 1:e84d8d51cd51 50 CH_OFFSTATE_PULLDOWN,
EndaKilgarriff 1:e84d8d51cd51 51 CH_OFFSTATE_PULLDOWN
EndaKilgarriff 1:e84d8d51cd51 52 },
EndaKilgarriff 1:e84d8d51cd51 53 .gpio_out = 0,
EndaKilgarriff 1:e84d8d51cd51 54 .gpio_in = 0,
EndaKilgarriff 1:e84d8d51cd51 55 .gpio_val = 0,
EndaKilgarriff 1:e84d8d51cd51 56 .ldac_mode = 0,
EndaKilgarriff 1:e84d8d51cd51 57 };