mciupak / nrf24

nrf24l01 linux device driver
GNU General Public License v3.0
23 stars 13 forks source link

Comunications with the driver #6

Open andrea1388 opened 5 years ago

andrea1388 commented 5 years ago

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

mciupak commented 5 years ago

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

andrea1388 commented 5 years ago

Ok, I'll try. Can you give me some hints for compile and install the module? Thanks, Andrea

dx9s commented 8 months ago

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)