Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
3b718967
Commit
3b718967
authored
Mar 24, 2020
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: added I2C EEPROM driver header
parent
4288b1be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
i2c_eeprom.h
include/dev/i2c_eeprom.h
+24
-0
No files found.
include/dev/i2c_eeprom.h
0 → 100644
View file @
3b718967
/*
* This work is part of the White Rabbit project
*
* Copyright (C) 2012-2020 CERN (www.cern.ch)
* Author: Grzegorz Daniluk <grzegorz.daniluk@cern.ch>
*
* Released according to the GNU GPL, version 2 or any later version.
*/
#ifndef __I2C_EEPROM_H
#define __I2C_EEPROM_H
#include "board.h"
struct
i2c_eeprom_device
{
struct
i2c_bus
*
bus
;
uint8_t
addr
;
};
int
i2c_eeprom_read
(
struct
i2c_eeprom_device
*
dev
,
int
offset
,
void
*
buf
,
int
count
);
int
i2c_eeprom_write
(
struct
i2c_eeprom_device
*
dev
,
int
offset
,
void
*
buf
,
int
count
);
int
i2c_eeprom_erase
(
struct
i2c_eeprom_device
*
dev
,
int
offset
,
int
count
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment