RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables
i2c-rtc.h File Reference

This file provides the interfaces of Shared_tod_i2c_rtc. More...

#include <rtems.h>
#include <rtems/thread.h>
#include <libchip/rtc.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  i2c_rtc_base
 

Macros

#define I2C_RTC_ORDER_sec_min_hour_wkday_day_month_year    { .sec = 0, .min = 1, .hour = 2, .day = 4, .wkday = 3, .month = 5, .year = 6 }
 
#define I2C_RTC_ORDER_sec_min_hour_day_wkday_month_year    { .sec = 0, .min = 1, .hour = 2, .day = 3, .wkday = 4, .month = 5, .year = 6 }
 
#define I2C_RTC_INITIALIZER(i2c_path, i2c_address, offset, reg_order, driver_name, hwinit)
 
#define I2C_RTC_TBL_ENTRY(dev_name, i2c_rtc_ctx)
 

Functions

bool i2c_rtc_probe (int minor)
 
int i2c_rtc_read (struct i2c_rtc_base *ctx, uint8_t addr, uint8_t *buf, size_t len)
 
int i2c_rtc_write (struct i2c_rtc_base *ctx, uint8_t addr, const uint8_t *buf, size_t len)
 

Variables

const rtc_fns i2c_rtc_fns
 

Detailed Description

This file provides the interfaces of Shared_tod_i2c_rtc.