all a's working
This commit is contained in:
		
							parent
							
								
									0f89d7efed
								
							
						
					
					
						commit
						13f49ad8d9
					
				
					 3 changed files with 28 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -157,6 +157,11 @@ uint8_t twi2c_start_listening(uint8_t address, twi2c_message_received callback)
 | 
			
		|||
  return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
uint8_t twi2c_restart_listening(uint8_t address) {
 | 
			
		||||
  i2cMatchAddress(&I2C_DRIVER, address/2);
 | 
			
		||||
  return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void twi2c_stop(void) {
 | 
			
		||||
  i2cUnmatchAll(&I2C_DRIVER);
 | 
			
		||||
  i2cStop(&I2C_DRIVER);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -43,5 +43,6 @@ void twi2c_stop(void);
 | 
			
		|||
uint8_t twi2c_reply(I2CDriver * i2cp, uint8_t * data, uint16_t length);
 | 
			
		||||
uint8_t twi2c_transmit_receive(uint8_t address, uint8_t * tx_body, uint16_t tx_length, uint8_t * rx_body, uint16_t rx_length);
 | 
			
		||||
uint8_t twi2c_start_listening(uint8_t address, twi2c_message_received callback);
 | 
			
		||||
uint8_t twi2c_restart_listening(uint8_t address);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue