Hello,
We have developed an interface in qt4 inspired by mocca (thank Thomas "gtom").
To communicate with the outside (with cards Mesa), we use a memory shared with EMC2.
In summary this gives (in principle to write a bit):
// file GUI
struct Data { hal_bit_t *prelay;};
Data *pData;
pData pHData;
pHData = pData(hal_malloc(sizeof(Data))); /// return pointeur shared memory
..... //creation pin bit via hal_pin_bit_new(...)
void SetContact(bool state) { *pHData->prelay = state;} // write in shared memory
The program works, (check with "Configuring HAL").
How EMC2 manages access to shared memory area ? is what structures with "shminfo" and/or semaphore ?
We want to avoid that and the interface emc2 write all such
Thank you for any information, links, etc.
Michel