Revision 946
extension of update to eeprom/bom/init. this is just the include files and the library archive.
bom.h | ||
---|---|---|
45 | 45 |
|
46 | 46 |
/** @brief Include all elements in the 16-bit bitfield **/ |
47 | 47 |
#define BOM_ALL 0xFFFF |
48 |
|
|
48 | 49 |
/** @brief Original BOM - No Range, No Individual LED control **/ |
49 |
#define BOM 0 |
|
50 |
#define BOM10 0 |
|
51 |
|
|
50 | 52 |
/** @brief BOM 1.5 - No Range, Individual LED control **/ |
51 | 53 |
#define BOM15 1 |
54 |
|
|
52 | 55 |
/** @brief RBOM - Range, Individual LED control **/ |
53 | 56 |
#define RBOM 2 |
54 |
|
|
57 |
|
|
58 |
|
|
55 | 59 |
/** @brief Initialize the bom according to bom type **/ |
56 | 60 |
void bom_init(char type); |
61 |
|
|
57 | 62 |
/** @brief Refresh bom_val[] with new values from analog8. analog_init and bom_init must be called for this to work. **/ |
58 | 63 |
void bom_refresh(int bit_field); |
64 |
|
|
59 | 65 |
/** @brief Gets the bom reading from bom_val[which]. Call bom_refresh beforehand to read new bom values. **/ |
60 | 66 |
int bom_get(int which); |
67 |
|
|
61 | 68 |
/** @brief Compares all the values in bom_val[] and returns the index to the highest value element. **/ |
62 | 69 |
int bom_get_max(void); |
63 |
/** @brief Turns on the selected bom leds. Only works with BOM_ALL if using the original bom. **/ |
|
64 |
void bom_leds_on(int bit_field); |
|
65 |
/** @brief Turns off the selected bom leds. Only works with BOM_ALL if using the original bom. **/ |
|
66 |
void bom_leds_off(int bit_field); |
|
67 | 70 |
|
68 |
/** @brief (DEPRECATED) Wrapper function. See bom_refresh and bom_get_max **/ |
|
71 |
/** @brief Enables the selected bom leds on a BOM1.5 **/ |
|
72 |
void bom_set_leds(int bit_field); |
|
73 |
|
|
74 |
/** @brief (DEPRECATED) Gets and compares all bom values. Returns the index to the highest value element. **/ |
|
69 | 75 |
int get_max_bom(void); |
70 |
/** @brief (DEPRECATED) Wrapper function. See bom_leds_on. **/ |
|
76 |
|
|
77 |
/** @brief Turns on all BOM leds, or turns on enabled leds on a BOM1.5. **/ |
|
71 | 78 |
void bom_on(void); |
72 |
/** @brief (DEPRECATED) Wrapper function. See bom_leds_off. **/ |
|
79 |
|
|
80 |
/** @brief Turns off all bom leds. **/ |
|
73 | 81 |
void bom_off(void); |
74 | 82 |
|
75 | 83 |
/** @} **/ |
Also available in: Unified diff