Part 1
요약·해설
Sample이 처리하는 단계와 의도적으로 맡기지 않는 health·top-off 책임을 구분합니다.
Power
External polling
Cycle
Enable · Monitor
Exit
Charge complete
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
원문 SHA-256
2D1D4858A232938357EE1A12231B2AF48255338705B74460A954C09E78522AA1
.. zephyr:code-sample:: charger
:name: Charger
:relevant-api: charger_interface
Charge a battery using the charger driver API.
Overview
********
This sample demonstrates how to use the :ref:`charger_api` API.
The sample application performs a simple charging task loop.
- The application will first poll for external power provided to the charger device.
- If power is provided to the charger, then the sample application will attempt to enable the charge
cycle.
- After the charge cycle is initiated, the sample application will check the status property of the
charger device and report any relevant information to the log.
- Once the charger device reports that the charge cycle has completed, the application returns.
Note that this sample terminates once the charge cycle completes and does not attempt to "top-off"
the battery pack. Additionally, the sample intentionally does not respond to the reported charger
health state and the implications the environment may have on the charge cycle execution. The
responsibility of responding to these events falls on the user or the charger device implementation.
Part 3
한국어 전문 번역
개요
이 sample은 charger driver API를 사용하는 방법을 보여줍니다.
Sample application은 다음의 간단한 충전 작업 loop를 수행합니다.
- 먼저 charger device에 외부 전원이 공급되는지 polling합니다.
- Charger에 전원이 공급되면 sample application이 charge cycle 활성화를 시도합니다.
- Charge cycle을 시작한 뒤에는 charger device의 status property를 확인하고 관련 정보를 log로 보고합니다.
- Charger device가 charge cycle 완료를 보고하면 application이 반환됩니다.
이 sample은 charge cycle이 끝나면 종료되며 battery pack을 추가로 top-off
하려고 시도하지 않습니다. 또한 의도적으로 charger가 보고한 health state나 환경이 charge cycle 실행에 미칠 수 있는 영향에 대응하지 않습니다. 이러한 event에 대응할 책임은 사용자 또는 charger device 구현에 있습니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.