I am trying to interface a heart rate sensor with my processor. All the register in it are 24-bits in size . My doubt was can I use the spi driver code from github for this purpose. I am not sure if it would read or write 24-bits. I have taken the spi code from the open source (github). Can anyone please help me out if i could use that code or not? I am providing the link for the spi driver code. Please guide me.
https://github.com/warpboard/linux-imx6/blob/warp/jb4.3_1.1.0-ga/include/linux/spi/spi.h
Regards,
Sathya Prasad P