Dependencies:   ADBMS2950

Committer:
sgarg2
Date:
Mon May 24 02:38:00 2021 +0000
Revision:
9:0a4828d32e76
Parent:
6:5d29fdcbae72
Add I2C test for EEPROM

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dpandit1988 1:94a3e8fe5e25 1 /**
dpandit1988 1:94a3e8fe5e25 2 ********************************************************************************
dpandit1988 1:94a3e8fe5e25 3 *
dpandit1988 1:94a3e8fe5e25 4 * @file: print_result.h
dpandit1988 1:94a3e8fe5e25 5 *
dpandit1988 1:94a3e8fe5e25 6 * @brief: This file contains the print result.
dpandit1988 1:94a3e8fe5e25 7 *
dpandit1988 1:94a3e8fe5e25 8 * @details:
dpandit1988 1:94a3e8fe5e25 9 *
dpandit1988 1:94a3e8fe5e25 10 *******************************************************************************
dpandit1988 1:94a3e8fe5e25 11 Copyright(c) 2020 Analog Devices, Inc. All Rights Reserved. This software is
dpandit1988 1:94a3e8fe5e25 12 proprietary & confidential to Analog Devices, Inc. and its licensors. By using
dpandit1988 1:94a3e8fe5e25 13 this software you agree to the terms of the associated Analog Devices License
dpandit1988 1:94a3e8fe5e25 14 Agreement.
dpandit1988 1:94a3e8fe5e25 15 *******************************************************************************
dpandit1988 1:94a3e8fe5e25 16 */
dpandit1988 1:94a3e8fe5e25 17 /*! \addtogroup Main
dpandit1988 1:94a3e8fe5e25 18 * @{
dpandit1988 1:94a3e8fe5e25 19 */
dpandit1988 1:94a3e8fe5e25 20
dpandit1988 1:94a3e8fe5e25 21 /*! \addtogroup Print_Result
dpandit1988 1:94a3e8fe5e25 22 * @{
dpandit1988 1:94a3e8fe5e25 23 */
dpandit1988 1:94a3e8fe5e25 24
dpandit1988 1:94a3e8fe5e25 25 #ifndef __RESULT_H
dpandit1988 1:94a3e8fe5e25 26 #define __RESULT_H
dpandit1988 1:94a3e8fe5e25 27
dpandit1988 1:94a3e8fe5e25 28 #include "adbms2950.h"
dpandit1988 1:94a3e8fe5e25 29
dpandit1988 1:94a3e8fe5e25 30 void printWriteConfig(uint8_t tIC, cell_asic *IC, TYPE type, GRP grp);
dpandit1988 1:94a3e8fe5e25 31 void printReadConfig(uint8_t tIC, cell_asic *IC, TYPE type, GRP grp);
dpandit1988 1:94a3e8fe5e25 32 void printDeviceSID(uint8_t tIC, cell_asic *IC, TYPE type);
dpandit1988 1:94a3e8fe5e25 33 void printWriteCommData(uint8_t tIC, cell_asic *IC, TYPE type);
dpandit1988 1:94a3e8fe5e25 34 void printReadCommData(uint8_t tIC, cell_asic *IC, TYPE type);
dpandit1988 1:94a3e8fe5e25 35 void printCr(uint8_t tIC, cell_asic *IC);
dpandit1988 1:94a3e8fe5e25 36 void printVoltage(uint8_t tIC, cell_asic *IC, TYPE type);
dpandit1988 1:94a3e8fe5e25 37 void printVbat(uint8_t tIC, cell_asic *IC);
dpandit1988 1:94a3e8fe5e25 38 void printIvbat(uint8_t tIC, cell_asic *IC);
dpandit1988 1:94a3e8fe5e25 39 void printAvgVbat(uint8_t tIC, cell_asic *IC);
dpandit1988 1:94a3e8fe5e25 40 void printAvgIVbat(uint8_t tIC, cell_asic *IC);
dpandit1988 1:94a3e8fe5e25 41 void printAvgCr(uint8_t tIC, cell_asic *IC);
dpandit1988 1:94a3e8fe5e25 42 void printOc(uint8_t tIC, cell_asic *IC);
dpandit1988 1:94a3e8fe5e25 43 void printStatus(uint8_t tIC, cell_asic *IC, TYPE type, GRP grp);
dpandit1988 1:94a3e8fe5e25 44 void printMenu(void);
dpandit1988 1:94a3e8fe5e25 45 void printMsg(char *msg);
dpandit1988 1:94a3e8fe5e25 46 void printPollAdcConvTime(int count);
dpandit1988 6:5d29fdcbae72 47 void printResultCount(int count);
sgarg2 9:0a4828d32e76 48 void printData(uint8_t data);
dpandit1988 6:5d29fdcbae72 49 void readUserInupt(int *user_command);
sgarg2 9:0a4828d32e76 50 void readUserData(uint8_t *data);
dpandit1988 1:94a3e8fe5e25 51 float getVoltage(int data);
dpandit1988 1:94a3e8fe5e25 52 float getCurrent(uint32_t data);
dpandit1988 1:94a3e8fe5e25 53 float getAvgCurrent(uint32_t data);
dpandit1988 6:5d29fdcbae72 54 float getAvgVbat(uint32_t data);
dpandit1988 1:94a3e8fe5e25 55 float getOverCurrent(uint8_t data);
dpandit1988 1:94a3e8fe5e25 56
dpandit1988 1:94a3e8fe5e25 57 #endif /* __RESULT_H */
dpandit1988 1:94a3e8fe5e25 58 /** @}*/
dpandit1988 1:94a3e8fe5e25 59 /** @}*/