Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Add getter functions for all Note hook setter functions.

Each getter follows the pattern of returning void and using pointer-to-pointer parameters for consistency.

Added functions:

  • NoteGetFnDebugOutput - Get debug output function
  • NoteGetFnTransaction - Get transaction start/stop functions
  • NoteGetFnMutex - Get I2C and Note mutex functions
  • NoteGetFnI2CMutex - Get I2C mutex functions
  • NoteGetFnNoteMutex - Get Note mutex functions
  • NoteGetFn - Get memory and timing hook functions
  • NoteGetFnSerial - Get serial communication functions
  • NoteGetFnI2C - Get I2C communication functions
  • NoteGetFnDisabled - Get interface disabled state
  • NoteGetI2CAddress - Get I2C address

All functions follow a consistent pattern:

  • Return void
  • Use pointer-to-pointer parameters for outputs
  • Include NULL pointer checks for safety
  • Maintain existing code style and patterns

Link to Devin run: https://app.devin.ai/sessions/1a3351d408de4183b2f5d15c710f2e11
Requested by: [email protected]

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Add getter functions that complement existing setter functions:

- NoteGetFnDebugOutput
- NoteGetFnTransaction
- NoteGetFnMutex
- NoteGetFnI2CMutex
- NoteGetFnNoteMutex
- NoteGetFn
- NoteGetFnSerial
- NoteGetFnI2C
- NoteGetFnDisabled
- NoteGetI2CAddress

All getters return void and use pointer-to-pointer parameters.
@zfields zfields force-pushed the devin/1738616085-add-getter-functions branch from e4b573c to 91cc55f Compare February 4, 2025 00:05
@devin-ai-integration
Copy link
Contributor Author

Devin is currently unreachable - the session may have died.

@devin-ai-integration devin-ai-integration bot force-pushed the devin/1738616085-add-getter-functions branch from 9dcf902 to 91cc55f Compare February 4, 2025 15:10
• Added test files for all getter functions in test/src
• Each function has its own dedicated test file
• Tests follow BDD pattern with SCENARIO blocks
• Added all tests to CMakeLists.txt
• Tests verify NULL parameter handling
• Tests verify valid parameter handling

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Zachary J. Fields <[email protected]>
@zfields zfields force-pushed the devin/1738616085-add-getter-functions branch from 233f0af to 2a4fe8b Compare February 4, 2025 19:01
@zfields zfields requested a review from rayozzie February 4, 2025 19:16
@zfields zfields merged commit 5fac9a3 into master Feb 4, 2025
11 of 13 checks passed
@zfields zfields deleted the devin/1738616085-add-getter-functions branch February 4, 2025 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants