8670 PSUH函数翻译

来源:互联网 发布:2016mac flash安装不了 编辑:程序博客网 时间:2024/06/04 19:34


Traps specifically for power supply control.
特定的电源控制


Functions






bool PsuGetVregEn (void )


Returns TRUE if VREG_EN(_H) is raised.
返回值为H,假如VREG_EN(H)脚位是高电平




This is only supported on BlueCore variants with charger hardware.
这个仅仅支持蓝牙芯片的变量和充电硬件
On BlueCore variants prior to BC5 this must be polled if we wish to detect if the level of VREG_EN(_H) has changed.
在蓝牙芯片  变量  之前                 必须  剪去         我们希望检测            这个值                   改变
On BlueCore variants from BC5 onwards changes in the 
在蓝牙芯片  变量     来自己BC5  起变化
VREG_EN(_H) level can generate events; 
VREG_EN(_H)这个值        产生事件
See MessageChargerTask documentation for details.
看充电信息文档的详细资料


(Typically an ON/OFF button is wired to VREG_EN.
典型的 ON/OFF按键是链接到VREG_EN脚位
When the button is pressed, VREG_EN goes high, the chip powers up, 
当按键按下,VREG_EN 脚位变高,芯片电源上电
and the firmware latches the SMPSU regulator as part of the early boot sequence. 
     这个已锁的固件        精准的开关电源                 早启动顺序
VREG_EN can then be removed.
VREG_EN 脚位的电平可以移除
To turn off the chip using the same button 
关闭这个芯片的使用同样的芯片
we need to have visibility of VREG_EN.) 
我们需要可见操作






bool PsuConfigure (psu_id psu, psu_config_key key, uint16 value )


Configures PSU regulators.
配置PSU的监视器


Parameters
          psu    Which power supply to reconfigure 更配置电源
          key    Which aspect of the PSU to configure配置电源方面
          value Which value to use 配置值


Returns
TRUE if the psu_id is valid, 
如果返回值为真,修改值有效
the key is valid and the input value corresponding to the key is in valid, else FALSE.
键是有效的,对应于键的输入值是有效的。否则无效




Various BlueCore models have different numbers and types of power supplies/ regulators.
各种蓝牙芯片有配置电源的使用不同的数值
This means the actual power supply controlled by any psu_id may change between different BlueCore models.
实际的电源控制是通过不同的psu_id,来调试不同的芯片变化
Consult the datasheet for your BlueCore variant for more information.
参考蓝牙芯片的数据表可以获得更多的信息