Part 1
요약·해설
Charge cycle enable과 runtime property get/set을 다룹니다.
profile · enable/terminate
state · current · voltage · temperature
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
9DB552370510624A4EFB73E2B12BEACA25E5ED220E09CE542D97752774F95567
.. _charger_api:
Chargers
########
The charger subsystem exposes an API to uniformly access battery charger devices.
A charger device, or charger peripheral, is a device used to take external power provided to the
system as an input and provide power as an output downstream to the battery pack(s) and system.
The charger device can exist as a module, an integrated circuit, or as a functional block in a power
management integrated circuit (PMIC).
The action of charging a battery pack is referred to as a charge cycle. When the charge cycle is
executed the battery pack is charged according to the charge profile configured on the charger
device. The charge profile is defined in the battery pack's specification that is provided by the
manufacturer. On charger devices with a control port, the charge profile can be configured by the
host controller by setting the relevant properties, and can be adjusted at runtime to respond to
environmental changes.
Basic Operation
***************
Initiating a Charge Cycle
=========================
A charge cycle is initiated or terminated using :c:func:`charger_charge_enable`.
Properties
==========
Fundamentally, a property is a configurable setting, state, or quantity that a charger device can
measure.
Chargers typically support multiple properties, such as temperature readings of the battery-pack
or present-time current/voltage.
Properties are fetched by the client one at a time using :c:func:`charger_get_prop`.
Properties are set by the client one at a time using :c:func:`charger_set_prop`.
.. _charger_api_reference:
API Reference
*************
.. doxygengroup:: charger_interface
Part 3
한국어 전문 번역
Charger subsystem은 battery charger device에 일관된 방식으로 접근하는 API를 제공합니다.
Charger device 또는 charger peripheral은 system에 공급되는 external power를 input으로 받아 battery pack과 system downstream에 power를 output하는 device입니다. Module, integrated circuit, 또는 PMIC(power management integrated circuit)의 functional block일 수 있습니다.
Battery pack을 충전하는 동작을 charge cycle이라고 합니다. Cycle 동안 charger에 설정된 charge profile에 따라 battery pack을 충전합니다. Profile은 manufacturer가 제공하는 battery pack specification에 정의됩니다. Control port가 있는 charger에서는 host controller가 관련 property로 profile을 설정하고 환경 변화에 맞춰 runtime에 조정할 수 있습니다.
기본 동작
Charge cycle 시작
charger_charge_enable()로 charge cycle을 시작하거나 종료합니다.
Property
Property는 charger가 측정할 수 있는 configurable setting, state 또는 quantity입니다. Charger는 보통 battery-pack temperature와 현재 current/voltage 같은 여러 property를 지원합니다.
charger_get_prop()으로 한 번에 하나씩 가져오고 charger_set_prop()으로 한 번에 하나씩 설정합니다.
API reference
charger_interface Doxygen group이 charger interface의 공식 API reference를 제공합니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.