| Wheelchair Control MCU firmware

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Enumerations Groups Pages
SRF08.h
Go to the documentation of this file.
1
14 #ifndef _SRF08 //define once
15 #define _SRF08
16
17 //Libraries
18 #include "Defines.h"
19 #include <util/twi.h>
20
21 //Functions
22
26 void I2C_Init(void);
27
31 void I2C_Stop(void);
32
36 uint8_t I2C_Start(uint8_t addr);
37
41 uint8_t I2C_Write(uint8_t data);
42
46 uint8_t I2C_ReadAck(void);
47
51 uint8_t I2C_ReadNak(void);
52
61 uint8_t SRF08_Write(uint8_t address, uint8_t reg, uint8_t data);
62
70 uint8_t SRF08_Read(uint8_t address, uint8_t reg);
71
72 #endif //_SRF_08
73