Skip to content
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

add support for a hal remote library #437

Merged
merged 3 commits into from May 16, 2024

Conversation

coldav
Copy link
Collaborator

@coldav coldav commented Apr 18, 2024

Overview

This adds support for generic client and server hal support to allow
sending commands as binary requests over a hal_transmitter.

Reason for change

Required to support customer needs of talking to a remote cpu.

Description of change

Added encoders and decoders for converting hal commands to binary format

Add hal_server base class which uses the encoders and decoders and a
hal_transmitter to receive hal commands remotely and act on the given
hal device.

Add a hal_client and hal_device_client base class which can be used with
a transmitter to send to a remote server binary commands.

Added a hal socket cpu client.
Added hal cpu socket based server program.

Anything else we should know?

This currently only supports single device hals

@coldav coldav force-pushed the colin/remote_hal branch 5 times, most recently from e9031c4 to 1815a54 Compare April 18, 2024 10:12
@coldav coldav force-pushed the colin/remote_hal branch 6 times, most recently from 54723e4 to ac02f73 Compare May 1, 2024 16:23
Add base class hal_transmitter which can be used for simple send/
receive operations of data. This can be used by client and servers
for different models of communication.

Also added a socket version which will be the default use case.
hal/include/hal_types.h Outdated Show resolved Hide resolved
@coldav coldav force-pushed the colin/remote_hal branch 2 times, most recently from 47fe3bb to f896722 Compare May 15, 2024 14:24
This adds support for generic client and server hal support to allow
sending commands as binary requests over a `hal_transmitter`.

Added encoders and decoders for converting hal commands to binary format

Add hal_server base class which uses the encoders and decoders and a
hal_transmitter to receive hal commands remotely and act on the given
hal device.

Add a hal_client and hal_device_client base class which can be used with
a transmitter to send to a remote server binary commands.

Added a hal socket cpu client.
Added hal cpu socket based server program.
@coldav coldav merged commit 256027e into codeplaysoftware:main May 16, 2024
3 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.

None yet

2 participants