Update cdata.c

Add function pointer of read and write operation of this device.