|
at24c32 access library
|
#include <stdio.h>#include <errno.h>#include <stdbool.h>#include <linux/fs.h>#include <at24c32.h>
Functions | |
| int | at24c32ByteWrite (int fd, unsigned short address, unsigned char data) |
| writes a byte to the EEPROM More... | |
| int | at24c32BlockWrite (int fd, unsigned short address, unsigned short length, unsigned char *data) |
| writes a block of data to the EEPROM More... | |
Variables | |
| bool | at24c32Debug |
Contains functions to write the at24c32 eeprom
Copyright U. Raich Dec. 2016
This program is part of a course on embedded systems held at the University of Cape Coast, Ghana in 2017 It is released under the GNU Public License For details please see https://www.gnu.org/licenses/gpl.html
| int at24c32BlockWrite | ( | int | fd, |
| unsigned short | address, | ||
| unsigned short | length, | ||
| unsigned char * | data | ||
| ) |
writes a block of data to the EEPROM
| int | fd: the file descriptor returned by a24c32Open |
| unsigned | short address: the memory address to write to |
| unsigned | short length: the length of the data array |
| unsigned | char *data: a pointer to the data that must be written |
| int at24c32ByteWrite | ( | int | fd, |
| unsigned short | address, | ||
| unsigned char | data | ||
| ) |
writes a byte to the EEPROM
| int | fd: the file descriptor returned by a24c32Open |
| unsigned | short address: the memory address to write to |
| unsigned | char data: the data word to be written |
1.8.11