![]() |
BlueNinja BSP
0.5
Cerevo BlueNinja(CDP-TZ01B) Board Support Packageリファレンスマニュアル
|
Battery charger(Ti BQ24250) driver for TZ10xx. [詳解]
#include <stdint.h>
#include <stdbool.h>
#include "Driver_I2C.h"
マクロ定義 | |
#define | BQ24250_I2C_ID (0x6a) |
BQ24250 register addresses | |
#define | BQ24250_REG_01 (0x00) |
#define | BQ24250_REG_02 (0x01) |
#define | BQ24250_REG_03 (0x02) |
#define | BQ24250_REG_04 (0x03) |
#define | BQ24250_REG_05 (0x04) |
#define | BQ24250_REG_06 (0x05) |
#define | BQ24250_REG_07 (0x06) |
BQ24250 register initial value. | |
| |
#define | BQ24250_DEF_01 (0x00) |
#define | BQ24250_DEF_02 (0x0c) |
#define | BQ24250_DEF_03 (0x8f) |
#define | BQ24250_DEF_04 (0xf8) |
#define | BQ24250_DEF_05 (0x02) |
#define | BQ24250_DEF_06 (0xa0) |
#define | BQ24250_DEF_07 (0xe0) |
関数 | |
bool | BQ24250_drv_reg01_set (uint8_t val) |
uint8_t | BQ24250_drv_reg01_get (void) |
bool | BQ24250_drv_reg02_set (uint8_t val) |
uint8_t | BQ24250_drv_reg02_get (void) |
bool | BQ24250_drv_reg03_set (uint8_t val) |
uint8_t | BQ24250_drv_reg03_get (void) |
bool | BQ24250_drv_reg04_set (uint8_t val) |
uint8_t | BQ24250_drv_reg04_get (void) |
bool | BQ24250_drv_reg05_set (uint8_t val) |
uint8_t | BQ24250_drv_reg05_get (void) |
bool | BQ24250_drv_reg06_set (uint8_t val) |
uint8_t | BQ24250_drv_reg06_get (void) |
bool | BQ24250_drv_reg07_set (uint8_t val) |
uint8_t | BQ24250_drv_reg07_get (void) |
bool | BQ24250_drv_init (ARM_DRIVER_I2C *i2c_drv, bool ts_enable) |
Initialize BQ24250. [詳解] | |
Battery charger(Ti BQ24250) driver for TZ10xx.
#define BQ24250_DEF_01 (0x00) |
Register 1 initial value
#define BQ24250_DEF_02 (0x0c) |
Register 2 initial value
#define BQ24250_DEF_03 (0x8f) |
Register 3 initial value
#define BQ24250_DEF_04 (0xf8) |
Register 4 initial value
#define BQ24250_DEF_05 (0x02) |
Register 5 initial value
#define BQ24250_DEF_06 (0xa0) |
Register 6 initial value
#define BQ24250_DEF_07 (0xe0) |
Register 7 initial value
#define BQ24250_REG_01 (0x00) |
Register 1
#define BQ24250_REG_02 (0x01) |
Register 2
#define BQ24250_REG_03 (0x02) |
Register 3
#define BQ24250_REG_04 (0x03) |
Register 4
#define BQ24250_REG_05 (0x04) |
Register 5
#define BQ24250_REG_06 (0x05) |
Register 6
#define BQ24250_REG_07 (0x06) |
Register 7
bool BQ24250_drv_init | ( | ARM_DRIVER_I2C * | i2c_drv, |
bool | ts_enable | ||
) |
Initialize BQ24250.
[in] | i2c_drv | TZ10xx I2C driver information. |
[in] | ts_enable | Thermister enable. ture: enable, false: disable |
true | Success |
false | Failed |