In led_strip; purpose of rmt_translator_set_context()? #520
-
In the led_strip driver, I can't figure out what and am hoping someone can explain what exactly |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The purpose of the rmt_translator_set_context() call is obvious: this function sets the strip handle as the translator context. Later, in the _rmt_adapter() function, which is called by the translator, we get this descriptor using rmt_translator_get_context(), find out the contents of the "brightness" field and automatically apply it using scale8_video(). |
Beta Was this translation helpful? Give feedback.
-
Hello and thank-you for the reply. Appreciate you taking the time.
Have a great one.
On May 29, 2023, at 8:33 AM, Ruslan V. Uss ***@***.***> wrote:
The purpose of the rmt_translator_set_context() call is obvious: this function sets the strip handle as the translator context. Later, in the _rmt_adapter() function, which is called by the translator, we get this descriptor using rmt_translator_get_context(), find out the contents of the "brightness" field and automatically apply it using scale8_video().
—
Reply to this email directly, view it on GitHub <#520 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ATMBFQPMC7V6INJ5GIRLGITXISXRZANCNFSM6AAAAAAYPY5ZNQ>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
The purpose of the rmt_translator_set_context() call is obvious: this function sets the strip handle as the translator context. Later, in the _rmt_adapter() function, which is called by the translator, we get this descriptor using rmt_translator_get_context(), find out the contents of the "brightness" field and automatically apply it using scale8_video().