This module provides a buffer management system for Power PMAC shared memory (USHM). It allows structured access to shared memory using a flexible frame-based approach, supporting both int and double data types. The buffer is designed to be used in conjunction with TCP servers or other data acquisition systems.
- Frame-based memory layout using a union type (
Point) for mixed-type data. - Alignment utilities to ensure proper memory access.
- Functions to initialize, write, and test shared memory buffers.
- Designed for use in Power PMAC Background Programs or Libraries.
- Compatible with other modules like
ppmac_tcp_serverfor real-time data streaming.
Follow the steps below to add this module to your Power PMAC project:
- Clone or add this repository as a submodule in the desired path under C Language.
- In the Power PMAC IDE, right-click on the desired folder (e.g., Background Programs or Libraries) and select "Add a new...".
- Enter the name
ppmac_ushm_buffer— the same name as this repository. - When prompted to overwrite the file, select "No".
- Right-click on the created folder and select "Add" > "Existing item...".
- Select the source (
.c) and header (.h) files from this repository.
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
Leandro Martins dos Santos
Software Systems Engineer
Diamond Light Source Ltd.