ShivaTeja Thoutam / ADBMS2950
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers adi_bms_2950cmdlist.h Source File

adi_bms_2950cmdlist.h

Go to the documentation of this file.
00001 /**
00002 ********************************************************************************
00003 *
00004 * @file:    adi_bms_2950cmdlist.h
00005 *
00006 * @brief:   This file contains 2950 command list.
00007 *
00008 * @details:
00009 *
00010 *******************************************************************************
00011 Copyright(c) 2020 Analog Devices, Inc. All Rights Reserved. This software is
00012 proprietary & confidential to Analog Devices, Inc. and its licensors. By using
00013 this software you agree to the terms of the associated Analog Devices License
00014 Agreement.
00015 *******************************************************************************
00016 */
00017 /*! \addtogroup BMS_Driver
00018 *  @{
00019 */
00020 
00021 /*! \addtogroup Command_List
00022 *  @{
00023 */
00024 
00025 #ifndef __ADBMSCOMMAND_H
00026 #define __ADBMSCOMMAND_H
00027 
00028 /*============= I N C L U D E S =============*/
00029 /*============== D E F I N E S ===============*/
00030 /*============= E X T E R N A L S ============*/
00031 /*============= E N U M E R A T O R S ============*/
00032 
00033 #include "common.h"
00034 
00035 /*!< configuration registers commands */
00036 extern uint8_t WRCFGA [2];
00037 extern uint8_t WRCFGB[2];
00038 extern uint8_t RDCFGA[2];
00039 extern uint8_t RDCFGB [2];
00040 
00041 /*!< Read cell voltage result registers commands */
00042 extern uint8_t RDI[2];
00043 extern uint8_t RDVBAT[2];
00044 extern uint8_t RDIVBAT[2];
00045 extern uint8_t RDVA[2];
00046 extern uint8_t RDVB[2];
00047 extern uint8_t RDOCR[2];
00048 extern uint8_t RDALLA [2];
00049 
00050 /*!< Read Result Registers Commands B */
00051 extern uint8_t RDIAV[2];
00052 extern uint8_t RDVBAV[2];
00053 extern uint8_t RDIVBAV[2];
00054 extern uint8_t RDALLB [2];
00055 
00056 /*!< Read Result Registers Commands C */
00057 extern uint8_t RDRVA[2];
00058 extern uint8_t RDRVB[2];
00059 extern uint8_t RDVC[2];
00060 extern uint8_t RDVD[2];
00061 extern uint8_t RDCALL [2];
00062 
00063 /*!< Read status registers */
00064 extern uint8_t RDSTATA[2];
00065 extern uint8_t RDSTATB[2];
00066 extern uint8_t RDSTATC[2];
00067 extern uint8_t RDSTATCERR [2];   /*!< With ERR bit*/
00068 extern uint8_t RDSTATD[2];
00069 extern uint8_t RDSTATE [2];
00070 
00071 /*!< Read all Status Registers */
00072 extern uint8_t RDASALL [2];
00073 
00074 /*!< Pwm registers commands */
00075 extern uint8_t WRPWM[2];
00076 extern uint8_t RDPWM[2];
00077 extern uint8_t WRPWM2[2];
00078 extern uint8_t RDPWM2 [2];
00079 
00080 /*!< Clear commands */
00081 extern uint8_t CLRAB[2];
00082 extern uint8_t CLRC[2];
00083 extern uint8_t CLRSTAT [2];
00084 extern uint8_t CLRFLAG [2];
00085 
00086 /*!< Poll adc command */
00087 extern uint8_t PLADC[2];
00088 extern uint8_t PLI1ADC[2];
00089 extern uint8_t PLI2ADC[2];
00090 extern uint8_t PLVADC[2];
00091 extern uint8_t PLAUX [2];
00092 
00093 /*!< GPIOs Comm commands */
00094 extern uint8_t WRCOMM[2];
00095 extern uint8_t RDCOMM [2];
00096 extern uint8_t STCOMM [13];
00097 
00098 /*!< Control Commands */
00099 extern uint8_t RDSID[2];
00100 extern uint8_t RSTCC[2];
00101 extern uint8_t SNAP[2];
00102 extern uint8_t UNSNAP[2];
00103 extern uint8_t SRST [2];
00104 
00105 /*!< Reserved Read Commands */
00106 extern uint8_t RDAUXC[2];
00107 extern uint8_t RDRAXC[2];
00108 extern uint8_t RDAUXD[2];
00109 extern uint8_t RDRAXD[2];
00110 
00111 #endif /* __BMS_COMMAND_H */
00112 
00113 /** @}*/
00114 /** @}*/