PebbleOS
Loading...
Searching...
No Matches
Functions
hal.h File Reference
#include <board/board.h>
#include <stdbool.h>

Functions

void i2c_hal_init (I2CBus *bus)
 Configure the bus controller, leaving it disabled.
 
void i2c_hal_enable (I2CBus *bus)
 Enable the bus controller.
 
void i2c_hal_disable (I2CBus *bus)
 Disable the bus controller.
 
bool i2c_hal_is_busy (I2CBus *bus)
 Check whether the bus controller is busy.
 
void i2c_hal_abort_transfer (I2CBus *bus)
 Abort the current transfer.
 
void i2c_hal_init_transfer (I2CBus *bus)
 Prepare for the transfer in the bus state.
 
void i2c_hal_start_transfer (I2CBus *bus)
 Start the transfer in the bus state.