Comunications with the driver
andrea1388 opened this issue · 3 comments
Hi mciupak, I'd like to use your driver for RF24 radios.
How can I communicate with the driver from a c program running in user space?
Do you have any example code?
Thanks, Andrea
Hi Andrea,
in terms of transmitting and receiving data you can use standard open/close and read/write functions. as for any other character device file. Configuration of the module (e.g. RX/TX addresses, data rate, channel etc.) is done via sysfs for the time being. See /sys/class/nrf24/ directory.
Currently I am in the middle of implementing minor changes in the driver and as soon it will be finished I will upload some C and C++ examples. Is it fine for you?
Thanks,
Marcin
Ok, I'll try.
Can you give me some hints for compile and install the module?
Thanks, Andrea
Stumbled upon this code in hopes of learning more about the NRF24 wireless hardware. Do you think it would be easy or hard to port this over to a the MILKV DUO ? (RISCV)