SysIo  1.9.0
Embedded Library and tools
tlc59116.h
1 
8 #ifndef _SYSIO_TLC59116_H_
9 #define _SYSIO_TLC59116_H_
10 
11 #include <sysio/defs.h>
12 
13 #ifdef __cplusplus
14  extern "C" {
15 #endif
16 /* ========================================================================== */
17 
49 /* constants ================================================================ */
53 #define TLC59116_ADDR_BASE 0x60
54 
55 /* macros =================================================================== */
65 #define TLC59116_ADDR(_a3,_a2,_a1,_a0) \
66  ((TLC59116_ADDR_BASE) + ((_a3)*16)+((_a2)*8)+((_a1)*4)+((_a0)*2))
67 
81 #define TLC59116_IREF(_cm,_hc,_cc) ((((_cm)&1)<<7)+(((_hc)&1)<<6)+((_cc)&0x3F))
82 
88 typedef struct xTlc59116Pin {
89  int out;
90  int ctrl;
91 } xTlc59116Pin;
92 
99 typedef struct xTlc59116Led {
103 } xTlc59116Led;
104 
111 typedef struct xTlc59116Config {
112  char * i2c_bus;
113  int i2c_addr;
115 
120 #ifdef __cplusplus
121  }
122 #endif
123 /* ========================================================================== */
124 #endif /* _SYSIO_TLC59116_H_ not defined */
Configuration d&#39;une Led connectée à un TLC59116.
Definition: tlc59116.h:99
xTlc59116Pin blue
broche de commande du bleu
Definition: tlc59116.h:102
Broche d&#39;un TLC59116.
Definition: tlc59116.h:88
Configuration d&#39;un contrôleur TLC59116.
Definition: tlc59116.h:111
int out
numéro de la sortie entre 0 et 15 (/OUT0 à /OUT15)
Definition: tlc59116.h:89
int ctrl
numéro de contrôleur 0 à (nof_ctrl - 1)
Definition: tlc59116.h:90
xTlc59116Pin red
broche de commande du rouge
Definition: tlc59116.h:100
xTlc59116Pin green
broche de commande du vert
Definition: tlc59116.h:101
struct xTlc59116Pin xTlc59116Pin
Broche d&#39;un TLC59116.
struct xTlc59116Led xTlc59116Led
Configuration d&#39;une Led connectée à un TLC59116.
struct xTlc59116Config xTlc59116Config
Configuration d&#39;un contrôleur TLC59116.