Wireless Charging Sonic Electric Toothbrushes
WAS-1972EN V1.00
15 / 17
December 27, 2021
Library Description
The following table lists each API used by the toothbrush body.
Command Name
Functional Description
modulation_function() Transmit toothbrush body ID and user-defined parameters
The following table details each API used by the toothbrush body.
API Name
modulation_function()
API Function
Transmit toothbrush body ID and user-defined parameters
Input Parameters
a_ID_H: Toothbrush ID code - high byte
a_ID_L
:
Toothbrush ID code - low byte
a_Rx_STA: a user-defined parameter for the toothbrush body
Output Parameters
Null
Program Description
After this API is executed, a user-defined communication packet will be
transmitted.
Refer to the Communication Principle Description for the packet formats in detail.
The following table lists each API used by the charging base.
Command Name
Functional Description
Demodulation
Parse the communication data and confirm whether the toothbrush body ID is
consistent with the charging base ID
OCP_demo_trim
Automatically calibrate the decoding level
PWM_ping_cycle
Transmit control subroutine
time_init
Timer initialisation
OCP_CAL
OCP comparator circuit offset calibration
DELAY_10us
10µs delay subroutine
The following table details each API used by the charging base.
API Name
Demodulation
API Function
Parse the communication data and confirm whether the toothbrush body ID is
consistent with the charging base ID
Input Parameters
Null
Output Parameters
user_fg_demodu_ok will be 1 when the toothbrush body ID is consistent with the
charging base ID
Program Description
After this API is executed, parse the communication data and confirm whether the
toothbrush body ID is consistent with the charging base ID. user_fg_demodu_ok
is set to 1 if the results match and 0 if not.
API Name
OCP_demo_trim
API Function
Automatically calibrate the decoding level
Input Parameters
Null
Output Parameters
Null
Program Description After this API is executed, the decoding level will be automatically calibrated.
API Name
PWM_ping_cycle
API Function
Transmit control subroutine
Input Parameters
Null
Output Parameters
Null
Program Description After this API is executed, user_fg_demodu_ok and delay time will determine
whether to continue to enable wireless charging
API Name
time_init
API Function
Timer initialisation
Input Parameters
Null
Output Parameters
Null
Program Description After this API is executed, the timer for transmission control will be initialised.