Function rc_pru_shared_mem_ptr#

Function Documentation#

volatile uint32_t *rc_pru_shared_mem_ptr(void)#

fetches a pointer to the beginning of the PRU shared memory.

This is done by mapping to /dev/mem and therefore requires root privileges but provides extremely low-latency memory access to communicate with the PRU.

Returns:

memory pointer on success, NULL on failure