我是靠谱客的博主 大意保温杯,这篇文章主要介绍QCC---battery-region module                                     battery region module1、模块路径2、代码分析,现在分享给大家,希望可以做个参考。

                                     battery region module

1、模块路径

路径:earbud-qcc3020-firmwareadksrcdomainspowerbattery_region

路径:earbud-qcc3020-firmwareearbudsrc

  • earbud_region_config.c
  • earbud_region_config.h

2、代码分析

2.1 数据结构

2.1.1 charger_region_t

typedef enum
{
    DISCHARGE_MODE,
    CHARGE_MODE,
}charge_mode_t;
/*! Operating region classification based on battery voltage */
typedef enum
{    
    NORMAL_REGION,    
    CRITICAL_REGION,    
    SAFETY_REGION
} charger_region_type_t;
typedef struct
{    
    /* Desired charge current in mA */    
    uint16 current;    

    /* Min and max voltage in mV */    
    uint16 voltage_min;    
    uint16 voltage_max;    
    /* Voltage hysteresis in mV */    
    uint8 voltag

最后

以上就是大意保温杯最近收集整理的关于QCC---battery-region module                                     battery region module1、模块路径2、代码分析的全部内容,更多相关QCC---battery-region内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(149)

评论列表共有 0 条评论

立即
投稿
返回
顶部