Skip to content

hal: Update the user component xhc pendants to getter/setter - #4326

Merged
grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:halgs_user-comps-pendants
Aug 3, 2026
Merged

hal: Update the user component xhc pendants to getter/setter#4326
grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:halgs_user-comps-pendants

Conversation

@BsAtHome

@BsAtHome BsAtHome commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

The XHC pendants are the last of the user components to be converted to getter/setter.

There are no parameters in the code, so conversion should be straight forward.

The one special thing is that there is a simulation mode for the pins in both pendants. Data is not in/from HAL shared memory, but is allocated in normal memory, when in simulation mode. This still works because the getter/setter code is oblivious to the memory it actually dereferences and just uses the pointer. The allocated fake pin target chunks are all sized properly and there is an extra guard before allocation.

@grandixximo
grandixximo merged commit bcae77b into LinuxCNC:master Aug 3, 2026
16 checks passed
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