#define __GPIO2PIN(x)
This is an approximation of log2.
#define PERIPH_TRIGGER_TASK(task)
#define GPIO_UNCONNECTED
Mark the signal as not connected to any pin.
#define I2C_TASK_STARTTX(i2c)
#define I2C_TASK_RESUME(i2c)
#define I2C_FREQUENCY(i2c)
#define I2C_TASK_STOP(i2c)
#define I2C_TASK_STARTRX(i2c)
void i2c_start_rx(uint32_t i2c)
Start I2C reception.
void i2c_resume(uint32_t i2c)
Resume I2C transaction.
void i2c_disable(uint32_t i2c)
Disable I2C peripheral.
void i2c_select_pins(uint32_t i2c, uint32_t scl_pin, uint32_t sda_pin)
Select GPIO pins to be used by this peripheral.
void i2c_set_fast_mode(uint32_t i2c)
Select Fast (400kHz) mode.
void i2c_enable(uint32_t i2c, uint32_t mode)
Enable I2C peripheral.
void i2c_set_frequency(uint32_t i2c, uint32_t freq)
Set I2C frequency.
void i2c_start_tx(uint32_t i2c)
Start I2C transmission.
void i2c_set_standard_mode(uint32_t i2c)
Select Standard (100kHz) mode.
void i2c_send_stop(uint32_t i2c)
Signal stop on I2C line.
void i2c_set_shorts(uint32_t i2c, uint32_t shorts)
Configure event -> task shortcuts.
void i2c_send_data(uint32_t i2c, uint8_t data)
Write Data to TXD register to be sent.
uint8_t i2c_get_data(uint32_t i2c)
Read Data from RXD register.
void i2c_set_address(uint32_t i2c, uint8_t addr)
Set 7bit I2C address of the device you wish to communicate with.
#define I2C_FREQUENCY_100K
100kHz
#define I2C_FREQUENCY_400K
400kHz