| 1117 | } |
| 1118 | |
| 1119 | void twi_readFrom(uint8_t address, uint8_t* data, uint8_t length) { |
| 1120 | uint8_t i; |
| 1121 | |
| 1122 | ptwv = (twi_Write_Vars *)malloc(sizeof(twi_Write_Vars)); |
| 1123 | ptwv -> address = address; |
| 1124 | ptwv -> data = data; |
| 1125 | ptwv -> length = length; |
| 1126 | fNextInterruptFunction = twi_read00; |
| 1127 | return twi_read00(); |
| 1128 | } |
| 1129 | |
| 1130 | void twi_reply(uint8_t ack) { |
| 1131 | // transmit master read ready signal, with or without ack |
no test coverage detected