|
embedded-software
reusable software modules for embedded systems
|
#include "project_settings.h"#include "hal_i2c.h"

Go to the source code of this file.
Data Structures | |
| struct | i2c_transaction |
Macros | |
| #define | I2C_MAX_TX_SIZE 4 |
| #define | I2C_MAX_RX_SIZE 4 |
| #define | I2C_MAX_TRANSACTIONS 4 |
| #define | TRANSACTION_FAILED 1 |
| #define | TRANSACTION_SUCCESSFUL 0 |
Typedefs | |
| typedef struct i2c_transaction | i2c_transaction_t |
Functions | |
| void | I2C_Init (i2c_settings_t *i2c_settings) |
| void | I2C_Transact (i2c_transaction_t *transaction) |
| uint8_t | I2C_Tx_Handler (uint8_t channel) |
| void | I2C_Rx_Handler (uint8_t channel, uint8_t byte) |
| uint16_t | I2C_GetSlaveAddress (uint8_t channel) |
| uint8_t | I2C_GetTxByte (uint8_t channel) |
| uint8_t | I2C_GetTxSize (uint8_t channel) |
| uint8_t | I2C_GetRxSize (uint8_t channel) |
| uint8_t | I2C_GetStayActive (uint8_t channel) |
| void | I2C_TransactionSuccess (uint8_t channel) |
| void | I2C_TransactionFail (uint8_t channel) |
| void | hal_I2C_Init (i2c_settings_t *settings) |
| void | hal_I2C_Enable (uint8_t channel) |
| void | hal_I2C_Disable (uint8_t channel) |
| void | hal_I2C_SendStart (uint8_t channel) |
| void | hal_I2C_EnableInterrupts (uint8_t channel) |
| void | hal_I2C_DisableInterrupts (uint8_t channel) |
| #define I2C_MAX_RX_SIZE 4 |
| #define I2C_MAX_TRANSACTIONS 4 |
| #define I2C_MAX_TX_SIZE 4 |
| #define TRANSACTION_FAILED 1 |
| #define TRANSACTION_SUCCESSFUL 0 |
| typedef struct i2c_transaction i2c_transaction_t |
| void hal_I2C_Disable | ( | uint8_t | channel | ) |

| void hal_I2C_DisableInterrupts | ( | uint8_t | channel | ) |
| void hal_I2C_Enable | ( | uint8_t | channel | ) |

| void hal_I2C_EnableInterrupts | ( | uint8_t | channel | ) |

| void hal_I2C_Init | ( | i2c_settings_t * | settings | ) |


| void hal_I2C_SendStart | ( | uint8_t | channel | ) |


| uint8_t I2C_GetRxSize | ( | uint8_t | channel | ) |

| uint16_t I2C_GetSlaveAddress | ( | uint8_t | channel | ) |

| uint8_t I2C_GetStayActive | ( | uint8_t | channel | ) |
| uint8_t I2C_GetTxByte | ( | uint8_t | channel | ) |

| uint8_t I2C_GetTxSize | ( | uint8_t | channel | ) |

| void I2C_Init | ( | i2c_settings_t * | i2c_settings | ) |


| void I2C_Rx_Handler | ( | uint8_t | channel, |
| uint8_t | byte | ||
| ) |

| void I2C_Transact | ( | i2c_transaction_t * | transaction | ) |


| void I2C_TransactionFail | ( | uint8_t | channel | ) |


| void I2C_TransactionSuccess | ( | uint8_t | channel | ) |


| uint8_t I2C_Tx_Handler | ( | uint8_t | channel | ) |