Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
i2c_arch.c File Reference

I2C functionality. More...

#include "mcu_periph/i2c.h"
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
#include <errno.h>
#include <pthread.h>
#include "rt_priority.h"
+ Include dependency graph for i2c_arch.c:

Go to the source code of this file.

Data Structures

struct  i2c_thread_t
 

Macros

#define I2C_THREAD_PRIO   10
 

Functions

static void * i2c_thread (void *thread_data)
 
static void UNUSED i2c_arch_init (struct i2c_periph *p)
 
void i2c_event (void)
 i2c_event() function More...
 
void i2c_setbitrate (struct i2c_periph *p, int bitrate)
 Set I2C bitrate. More...
 
bool i2c_idle (struct i2c_periph *p)
 Check if I2C bus is idle. More...
 
bool i2c_submit (struct i2c_periph *p, struct i2c_transaction *t)
 Submit a I2C transaction. More...
 

Detailed Description

I2C functionality.

Definition in file i2c_arch.c.


Data Structure Documentation

struct i2c_thread_t

Definition at line 48 of file i2c_arch.c.

Data Fields
pthread_cond_t condition
pthread_mutex_t mutex

Macro Definition Documentation

#define I2C_THREAD_PRIO   10

Definition at line 42 of file i2c_arch.c.

Referenced by i2c_thread().

Function Documentation

static void UNUSED i2c_arch_init ( struct i2c_periph p)
static

Definition at line 53 of file i2c_arch.c.

References i2c_thread().

+ Here is the call graph for this function: