I have a printer attached to imx6ul using SPI. It is a thermal printer so on printing the printer gets heated up so I have change the printing time according to the Head temperature. Now the problem is If I read from the sysfs interface from Application space it is taking too much time for printing and my printer head is getting damaged.
Is there any way to do in the kernel space itself. I have to read the ADC for each dotted line printing and take decision for heating time or else I should terminate the printing.