summaryrefslogtreecommitdiff
path: root/msp430/cec_state.h
blob: 0a115548b181886f714115ecc78dca53f4782a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * Copyright
 *
 * Copyright (C) 2009-2010 Christian König (deathsimple@vodafone.de)
 *
 * License
 *
 * This program is free software; you can redistribute and/or modify
 * program under the terms of GNU General Public license either version 3
 * of the License, or (at your option) any later version. 
 *
 */

#ifndef _CEC_STATE_H_
#define _CEC_STATE_H_

enum CEC_State {
	CEC_Idle,

	CEC_RX_Data,
	CEC_RX_EOM,
	CEC_RX_ACK,
	CEC_RX_Done,
	
	CEC_TX_Data,
	CEC_TX_EOM,
	CEC_TX_ACK

};

enum CEC_Result {
	CEC_Transmitted	= 0xF0,
	CEC_Timeout	= 0xE0,
	CEC_OOR		= 0xD0,
	CEC_NACK	= 0xC0,
	CEC_ARL		= 0xB0,
	CEC_Bytes_Max	= 0x80

};

#endif