Functions | |
PMIC_STATUS | pmic_batt_disable_eol (void) |
PMIC_STATUS | pmic_batt_set_out_control (t_control control) |
PMIC_STATUS | pmic_batt_set_threshold (int threshold) |
PMIC_STATUS | pmic_batt_led_control (bool on) |
PMIC_STATUS | pmic_batt_set_reverse_supply (bool enable) |
PMIC_STATUS | pmic_batt_set_unregulated (bool enable) |
PMIC_STATUS | pmic_batt_set_5k_pull (bool enable) |
PMIC_STATUS | mc13783_battery_event (t_batt_event event, void *callback, bool sub) |
PMIC_STATUS | pmic_batt_event_subscribe (t_batt_event event, void *callback) |
PMIC_STATUS | pmic_batt_event_unsubscribe (t_batt_event event, void *callback) |
static int | pmic_battery_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) |
static int | pmic_battery_open (struct inode *inode, struct file *file) |
static int | pmic_battery_release (struct inode *inode, struct file *file) |
PMIC_STATUS mc13783_battery_event | ( | t_batt_event | event, | |
void * | callback, | |||
bool | sub | |||
) |
This function is used to un/subscribe on battery event IT.
event | type of event. | |
callback | event callback function. | |
sub | define if Un/subscribe event. |
PMIC_STATUS pmic_batt_disable_eol | ( | void | ) |
This function disables End-of-Life comparator.
PMIC_STATUS pmic_batt_event_subscribe | ( | t_batt_event | event, | |
void * | callback | |||
) |
This function is used to subscribe on battery event IT.
event | type of event. | |
callback | event callback function. |
PMIC_STATUS pmic_batt_event_unsubscribe | ( | t_batt_event | event, | |
void * | callback | |||
) |
This function is used to un subscribe on battery event IT.
event | type of event. | |
callback | event callback function. |
PMIC_STATUS pmic_batt_led_control | ( | bool | on | ) |
This function controls charge LED.
on | If on is ture, LED will be turned on, or otherwise, LED will be turned off. |
PMIC_STATUS pmic_batt_set_5k_pull | ( | bool | enable | ) |
This function sets a 5K pull down at CHRGRAW. To be used in the dual path charging configuration.
enable | If enable is true, 5k pull down is enable, or otherwise, disabled. |
PMIC_STATUS pmic_batt_set_out_control | ( | t_control | control | ) |
This function sets the output controls. It sets the FETOVRD and FETCTRL bits of mc13783
control | type of control. |
PMIC_STATUS pmic_batt_set_reverse_supply | ( | bool | enable | ) |
This function sets reverse supply mode.
enable | If enable is ture, reverse supply mode is enable, or otherwise, reverse supply mode is disabled. |
PMIC_STATUS pmic_batt_set_threshold | ( | int | threshold | ) |
This function sets over voltage threshold.
threshold | value of over voltage threshold. |
PMIC_STATUS pmic_batt_set_unregulated | ( | bool | enable | ) |
This function sets unregulatored charging mode on main battery.
enable | If enable is ture, unregulated charging mode is enable, or otherwise, disabled. |
static int pmic_battery_ioctl | ( | struct inode * | inode, | |
struct file * | file, | |||
unsigned int | cmd, | |||
unsigned long | arg | |||
) | [static] |
This function implements IOCTL controls on a PMIC Battery device.
inode | pointer on the node | |
file | pointer on the file | |
cmd | the command | |
arg | the parameter |
static int pmic_battery_open | ( | struct inode * | inode, | |
struct file * | file | |||
) | [static] |
This function implements the open method on a Pmic battery device.
inode | pointer on the node | |
file | pointer on the file |
static int pmic_battery_release | ( | struct inode * | inode, | |
struct file * | file | |||
) | [static] |
This function implements the release method on a Pmic battery device.
inode | pointer on the node | |
file | pointer on the file |
© Freescale Semiconductor, Inc., 2007.
All rights reserved. Freescale Confidential Proprietary NDA Required |
![]() |