Subversion Repositories group.electronics

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
126 pfowler 1
/*
2
 * lmd.h
3
 *
4
 *  Created on: 30/11/2013
5
 *      Author: pfowler
6
 */
7
 
8
#ifndef LMD_H_
9
#define LMD_H_
10
 
11
struct {
12
	uint8_t pin;
13
	uint8_t ddr;
14
	uint8_t port;
15
	uint8_t clk;
16
	uint8_t load;
17
	uint8_t data;
18
	uint8_t numMax;
19
	uint8_t* dps;
20
 
21
} lmd;
22
 
23
void lmd_init(uint8_t pinx_addr, uint8_t clk_pin, uint8_t load_pin, uint8_t data_pin, uint8_t numMax);
24
 
25
void lmd_dp(uint8_t max, uint8_t);
26
 
27
void lmd_print_u32(uint8_t max, uint32_t value);
28
void lmd_print_u16(uint8_t max, uint16_t value);
29
void lmd_print_u8(uint8_t max, uint8_t value);
30
 
31
void lmd_intensity(uint8_t max, uint8_t i);
32
void lmd_scanlimit(uint8_t max, uint8_t l);
33
void lmd_shutdown(uint8_t max, uint8_t s);
34
void lmd_decodemode(uint8_t max, uint8_t d);
35
 
36
 
37
void lmd_writeReg(uint8_t max, uint8_t reg, uint8_t val);
38
void lmd_writeByte(uint8_t dataout);
39
 
40
void lmd_clearAll(void);
41
void lmd_writeRegAll(uint8_t reg, uint8_t val);
42
 
43
void lmd_test(void);
44
 
45
#endif /* LMD_H_ */