主权项 |
1. A method comprising:
receiving, by a control circuit, a digital description of a current pulse, the digital description including information about a current value and a duration for which the current value is to be applied to a laser diode; generating, by the control circuit, an analog drive signal corresponding to the digital description of the current pulse; communicating, by the control circuit, the analog drive signal to the laser diode; receiving, by the control circuit, information indicative of current flow through the laser diode upon application of the analog drive signal; generating, by the control circuit, a new digital description of the current pulse based on the digital description of the current pulse and the information indicative of the current flow through the laser diode; generating, by the control circuit, a new analog drive signal corresponding to the new digital description of the current pulse; and providing, by the control circuit, the new analog drive signal to the laser diode. |