Hello!
You advised me to use MoveBlock function.. but it doesnt work.
In my C source code I have mmaped memory using function "mmap" it returns a pointer of type (unsigned char *).
Then I set char (or uChar) (tried both): char vertiba = ptr_to_pci_mem[1]
And I want see data on indicator. Tried different types of indicators, even string indicator. Tried using MoveBlock function and nothing.
Please help me with this question, where am I wrong? what should be done for realizing this task?
#Code:
......
......
MgErr CINRun(uChar String);
MgErr CINRun(uChar String)
{
......
......
unsigned char *ptr_to_pci_mem;
#define PCI_MEM_LEN 2097152
ptr_to_pci_mem = mmap(NULL, PCI_MEM_LEN, PROT_READ|PROT_WRITE, MAP_SHARED, fd, (off_t)pci_mem_addr);
MoveBlock(&ptr_to_pci_mem[1], &String, 2);
......
......
Waiting for your wise advices and answers.