Content originally posted in LPCWare by rocketdawg on Mon Nov 18 17:51:24 MST 2013
I2C_PARAM_t
there is no documentation regarding the correct values to place in num_bytes_send and num_bytes_rec
I need to send
address, command, data0, data1
and send/receive
address, command, (address w/read) receive data0, data1
I do not know if the num_bytes_send should include the address byte or not, looks like it should via LPCOpen sample with i2c_master_transmit
but the same sample shows that a read does not include the address when doing a i2c_master_receive
a bit confusing given no documentation.