-
Notifications
You must be signed in to change notification settings - Fork 11
gh #164 Update description of dsHdmiInGetStatus and dsHdmiInSelectPort #165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 11 commits
41787a0
be18de6
cc38197
d951145
c118ace
b5484fd
3998174
a83fb0e
6909d27
68e4f3d
671d8a5
cc9a06c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -180,7 +180,9 @@ dsError_t dsCompositeInGetNumberOfInputs (uint8_t *pNumberOfInputs); | |
| * | ||
| * @warning This API is Not thread safe. | ||
| * | ||
| * @pre dsCompositeInInit() should be called before calling this API. | ||
| * @pre dsCompositeInInit() should be called before calling this API. | ||
| * After every operation, that may change 'dsCompositeInStatus_t',should wait until the | ||
| * 'dsCompositeInStatusChangeCB_t' callback is received. | ||
| */ | ||
| dsError_t dsCompositeInGetStatus (dsCompositeInStatus_t *pStatus); | ||
|
|
||
|
|
@@ -202,6 +204,7 @@ dsError_t dsCompositeInGetStatus (dsCompositeInStatus_t *pStatus); | |
| * | ||
| * @note When a port is selected that port should be set as activePort in ::dsCompositeInStatus_t. | ||
| * Also, if there is a signal (ie isPortConnected[that port ID] is true), once active, isPresented should be set to true as well. | ||
| * Any change in the variable - 'dsCompositeInStatus_t' will be communicated via the 'dsCompositeInStatusChangeCB_t' callback. | ||
|
||
| * | ||
| * @pre dsCompositeInInit() should be called before calling this API. | ||
| */ | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -181,7 +181,9 @@ dsError_t dsHdmiInGetNumberOfInputs (uint8_t *pNumberOfinputs); | |||||||||
| * @retval dsERR_OPERATION_FAILED - The attempted operation has failed | ||||||||||
| * | ||||||||||
| * @pre dsHdmiInInit() must be called before calling this API. | ||||||||||
| * | ||||||||||
| * After every operation, that may change 'dsHdmiInStatus_t',should wait until the | ||||||||||
| * 'dsHdmiInStatusChangeCB_t' callback is received. | ||||||||||
|
Comment on lines
+184
to
+185
|
||||||||||
| * After every operation, that may change 'dsHdmiInStatus_t',should wait until the | |
| * 'dsHdmiInStatusChangeCB_t' callback is received. | |
| * @note After every operation that may change ::dsHdmiInStatus_t, callers should wait until the | |
| * ::dsHdmiInStatusChangeCB_t callback is received before relying on the updated status. |
Copilot
AI
Feb 27, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This note appears to reference the wrong type/callback: it says changes to 'dsHdmiInSignalStatus_t' are communicated via 'dsHdmiInStatusChangeCB_t'. In this header, signal status has its own callback type (dsHdmiInSignalChangeCB_t), while dsHdmiInStatusChangeCB_t carries dsHdmiInStatus_t. Please align the wording with the actual callback used for signal status vs overall status updates.
| * Any change in the variable - 'dsHdmiInSignalStatus_t' will be communicated via the 'dsHdmiInStatusChangeCB_t' callback. | |
| * Any change in the variable - 'dsHdmiInSignalStatus_t' will be communicated via the 'dsHdmiInSignalChangeCB_t' callback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to dsHdmiInGetStatus(), the new "wait until ...StatusChangeCB" guidance is under
@preand reads like a strict precondition for calling dsCompositeInGetStatus(). Consider moving it to a @note/@attention about asynchronous updates, and fix punctuation/spacing (missing space after comma in "...,should").