i2c_base.hpp File Reference
Provides I2C Base class functionality for I2C peripherals. More...
#include <stdint.h>
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "LPC17xx.h"
Include dependency graph for i2c_base.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
class | I2C_Base |
Macros | |
#define | I2C_TIMEOUT_MS 1000 |
Detailed Description
Provides I2C Base class functionality for I2C peripherals.
20140212 : Improved the driver by not having internal memory to copy the transaction's data. The buffer supplied from the user is used directly. 20131211 : Used timeout for read/write semaphore (instead of portMAX_DELAY) Refactored code, and made the write transfer wait for completion and return true upon success.
Macro Definition Documentation
#define I2C_TIMEOUT_MS 1000 |
Define the maximum timeout for r/w operation (in case error occurs) This is the timeout for read transaction to finish and if FreeRTOS is running, then this is the timeout for the mutex to be obtained.