 |
GaIA BIOS Library
|
Loading...
Searching...
No Matches
I2C Driver.
More...
#include <stdint.h>
|
|
void | i2c_init_lib (void) |
| | Initializes I2C Driver.
|
|
void | i2c_start (void) |
| | Starts I2c Peripheral.
|
|
void | i2c_stop (void) |
| | Stops I2C Peripheral.
|
| uint8_t | i2c_addr (uint8_t adr) |
| | Sends the address.
|
| uint8_t | i2c_write (uint8_t c) |
| | Writes data.
|
| uint8_t | i2c_read (uint8_t ack) |
| | Reads data.
|
I2C Driver.
- Author
- Tecnologix, 2016
◆ i2c_addr()
| uint8_t i2c_addr |
( |
uint8_t | adr | ) |
|
Sends the address.
- Parameters
-
- Returns
- 1 in case of ack, 0 otherwise.
◆ i2c_read()
| uint8_t i2c_read |
( |
uint8_t | ack | ) |
|
Reads data.
- Parameters
-
- Returns
- the byte read.
◆ i2c_write()
| uint8_t i2c_write |
( |
uint8_t | c | ) |
|
Writes data.
- Parameters
-
- Returns
- 1 in case of ack, 0 otherwise.