主权项 |
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, wherein generating the new digital description of the current pulse comprises:
comparing, by the control circuit, the current flowing through the laser diode to the current value included in the first digital information;determining, by the control circuit, that the current flowing through the laser diode is not substantially equal to the current value included in the first digital information; andgenerating, by the control circuit, the new digital description of the current pulse based on the determination; 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. |