2010-08-13 14:46:38 +03:00
|
|
|
/*
|
|
|
|
* f32x/c2.h - Basic C2 messages
|
|
|
|
*
|
2010-10-22 20:09:35 +03:00
|
|
|
* Written 2008, 2010 by Werner Almesberger
|
|
|
|
* Copyright 2008, 2010 Werner Almesberger
|
2010-08-13 14:46:38 +03:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef C2_H
|
|
|
|
#define C2_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
|
|
void c2_addr_write(uint8_t addr);
|
|
|
|
uint8_t c2_addr_read(void);
|
|
|
|
void c2_data_write(uint32_t data, int bytes);
|
|
|
|
uint32_t c2_data_read(int bytes) ;
|
|
|
|
|
2010-10-22 20:09:35 +03:00
|
|
|
void c2_init(int power);
|
2010-08-13 14:46:38 +03:00
|
|
|
void c2_reset(void);
|
|
|
|
|
|
|
|
#endif /* !C2_H */
|