Statistics
| Branch: | Tag: | Revision:

root / analog_exp / excitation.h @ 168:bfc84ee2839b

History | View | Annotate | Download (488 Bytes)

1
#ifndef __excitation_h_
2
#define __excitation_h_
3
4
#include <stdint.h>
5
#include <stdbool.h>
6
7
void exc_setup(void);
8
void exc_power_on(bool on);
9
void exc_enable(uint8_t ch, uint8_t value);
10
void exc_disable(uint8_t ch);
11
12
#define EXC_CMD_ACR_READ 0x20
13
#define EXC_CMD_ACR_WRITE 0x60
14
#define EXC_CMD_READ 0x80
15
#define EXC_CMD_WRITE 0xC0
16
17
#define EXC_REG_ACR 0x10
18
#define EXC_REG_WR1 0x1
19
#define EXC_REG_WR0 0x0
20
21
#define EXC_SHDN_bm (1<<6)
22
#define EXC_SDO_bm = (1<<1)
23
24
#endif // __excitation_h_
25