| 1084 | } |
| 1085 | |
| 1086 | void twi_writeTo(uint8_t address, uint8_t* data, uint8_t length, uint8_t wait) { |
| 1087 | uint8_t i; |
| 1088 | ptwv = (twi_Write_Vars *)malloc(sizeof(twi_Write_Vars)); |
| 1089 | ptwv -> address = address; |
| 1090 | ptwv -> data = data; |
| 1091 | ptwv -> length = length; |
| 1092 | ptwv -> wait = wait; |
| 1093 | fNextInterruptFunction = twi_write00; |
| 1094 | return twi_write00(); |
| 1095 | } |
| 1096 | |
| 1097 | void twi_read01() { |
| 1098 | if (TWI_MRX == twi_state) return; // blocking test |
no test coverage detected