Skip to content

Commit

Permalink
Merge pull request #15 from libdriver/dev
Browse files Browse the repository at this point in the history
fix: fix id checking bugs
  • Loading branch information
libdriver authored May 25, 2024
2 parents 8778354 + 21bb645 commit af7f003
Show file tree
Hide file tree
Showing 12 changed files with 681 additions and 687 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.0.1 (2024-05-25)

## Fixes

- fix id checking bugs

## 2.0.0 (2021-02-26)

## Features
Expand Down
1,148 changes: 571 additions & 577 deletions doc/html/driver__tsl2561_8c_source.html

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions doc/html/driver__tsl2561_8h_source.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions doc/html/driver__tsl2561__basic_8c_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; }</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;}</div>
<div class="ttc" id="adriver__tsl2561__basic_8h_html"><div class="ttname"><a href="driver__tsl2561__basic_8h.html">driver_tsl2561_basic.h</a></div><div class="ttdoc">driver tsl2561 basic header file</div></div>
<div class="ttc" id="agroup__tsl2561__base__driver_html_ga173d906891364d617b0f80c8dadf07af"><div class="ttname"><a href="group__tsl2561__base__driver.html#ga173d906891364d617b0f80c8dadf07af">tsl2561_read</a></div><div class="ttdeci">uint8_t tsl2561_read(tsl2561_handle_t *handle, uint16_t *channel_0_raw, uint16_t *channel_1_raw, uint32_t *lux)</div><div class="ttdoc">read data from the chip</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00388">driver_tsl2561.c:388</a></div></div>
<div class="ttc" id="agroup__tsl2561__base__driver_html_ga28d9692abebc8d1c7c70ef8e3f4d0f5f"><div class="ttname"><a href="group__tsl2561__base__driver.html#ga28d9692abebc8d1c7c70ef8e3f4d0f5f">tsl2561_deinit</a></div><div class="ttdeci">uint8_t tsl2561_deinit(tsl2561_handle_t *handle)</div><div class="ttdoc">close the chip</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00300">driver_tsl2561.c:300</a></div></div>
<div class="ttc" id="agroup__tsl2561__base__driver_html_ga6f162e88076d195caa4b2f0d8618ff57"><div class="ttname"><a href="group__tsl2561__base__driver.html#ga6f162e88076d195caa4b2f0d8618ff57">tsl2561_set_addr_pin</a></div><div class="ttdeci">uint8_t tsl2561_set_addr_pin(tsl2561_handle_t *handle, tsl2561_address_t addr_pin)</div><div class="ttdoc">set the iic address pin</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00341">driver_tsl2561.c:341</a></div></div>
<div class="ttc" id="agroup__tsl2561__base__driver_html_ga173d906891364d617b0f80c8dadf07af"><div class="ttname"><a href="group__tsl2561__base__driver.html#ga173d906891364d617b0f80c8dadf07af">tsl2561_read</a></div><div class="ttdeci">uint8_t tsl2561_read(tsl2561_handle_t *handle, uint16_t *channel_0_raw, uint16_t *channel_1_raw, uint32_t *lux)</div><div class="ttdoc">read data from the chip</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00382">driver_tsl2561.c:382</a></div></div>
<div class="ttc" id="agroup__tsl2561__base__driver_html_ga28d9692abebc8d1c7c70ef8e3f4d0f5f"><div class="ttname"><a href="group__tsl2561__base__driver.html#ga28d9692abebc8d1c7c70ef8e3f4d0f5f">tsl2561_deinit</a></div><div class="ttdeci">uint8_t tsl2561_deinit(tsl2561_handle_t *handle)</div><div class="ttdoc">close the chip</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00294">driver_tsl2561.c:294</a></div></div>
<div class="ttc" id="agroup__tsl2561__base__driver_html_ga6f162e88076d195caa4b2f0d8618ff57"><div class="ttname"><a href="group__tsl2561__base__driver.html#ga6f162e88076d195caa4b2f0d8618ff57">tsl2561_set_addr_pin</a></div><div class="ttdeci">uint8_t tsl2561_set_addr_pin(tsl2561_handle_t *handle, tsl2561_address_t addr_pin)</div><div class="ttdoc">set the iic address pin</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00335">driver_tsl2561.c:335</a></div></div>
<div class="ttc" id="agroup__tsl2561__base__driver_html_ga84a50a0c1118ead7fadb6f76ee991ea3"><div class="ttname"><a href="group__tsl2561__base__driver.html#ga84a50a0c1118ead7fadb6f76ee991ea3">tsl2561_init</a></div><div class="ttdeci">uint8_t tsl2561_init(tsl2561_handle_t *handle)</div><div class="ttdoc">initialize the chip</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00214">driver_tsl2561.c:214</a></div></div>
<div class="ttc" id="agroup__tsl2561__base__driver_html_gabfe09032574b57134fbc71ec2089e1de"><div class="ttname"><a href="group__tsl2561__base__driver.html#gabfe09032574b57134fbc71ec2089e1de">tsl2561_address_t</a></div><div class="ttdeci">tsl2561_address_t</div><div class="ttdoc">tsl2561 address enumeration definition</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8h_source.html#l00063">driver_tsl2561.h:64</a></div></div>
<div class="ttc" id="agroup__tsl2561__base__driver_html_gac665a54c9db148693b8cb7ef589b2101"><div class="ttname"><a href="group__tsl2561__base__driver.html#gac665a54c9db148693b8cb7ef589b2101">tsl2561_set_gain</a></div><div class="ttdeci">uint8_t tsl2561_set_gain(tsl2561_handle_t *handle, tsl2561_gain_t gain)</div><div class="ttdoc">set the adc gain</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00439">driver_tsl2561.c:439</a></div></div>
<div class="ttc" id="agroup__tsl2561__base__driver_html_gad331206ce72a18afca3ccd60b4f43914"><div class="ttname"><a href="group__tsl2561__base__driver.html#gad331206ce72a18afca3ccd60b4f43914">tsl2561_set_integration_time</a></div><div class="ttdeci">uint8_t tsl2561_set_integration_time(tsl2561_handle_t *handle, tsl2561_integration_time_t t)</div><div class="ttdoc">set the integration time</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00519">driver_tsl2561.c:519</a></div></div>
<div class="ttc" id="agroup__tsl2561__base__driver_html_gae080c29275c44f5496977b8553e94457"><div class="ttname"><a href="group__tsl2561__base__driver.html#gae080c29275c44f5496977b8553e94457">tsl2561_wake_up</a></div><div class="ttdeci">uint8_t tsl2561_wake_up(tsl2561_handle_t *handle)</div><div class="ttdoc">wake up the chip</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00943">driver_tsl2561.c:943</a></div></div>
<div class="ttc" id="agroup__tsl2561__base__driver_html_gac665a54c9db148693b8cb7ef589b2101"><div class="ttname"><a href="group__tsl2561__base__driver.html#gac665a54c9db148693b8cb7ef589b2101">tsl2561_set_gain</a></div><div class="ttdeci">uint8_t tsl2561_set_gain(tsl2561_handle_t *handle, tsl2561_gain_t gain)</div><div class="ttdoc">set the adc gain</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00433">driver_tsl2561.c:433</a></div></div>
<div class="ttc" id="agroup__tsl2561__base__driver_html_gad331206ce72a18afca3ccd60b4f43914"><div class="ttname"><a href="group__tsl2561__base__driver.html#gad331206ce72a18afca3ccd60b4f43914">tsl2561_set_integration_time</a></div><div class="ttdeci">uint8_t tsl2561_set_integration_time(tsl2561_handle_t *handle, tsl2561_integration_time_t t)</div><div class="ttdoc">set the integration time</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00513">driver_tsl2561.c:513</a></div></div>
<div class="ttc" id="agroup__tsl2561__base__driver_html_gae080c29275c44f5496977b8553e94457"><div class="ttname"><a href="group__tsl2561__base__driver.html#gae080c29275c44f5496977b8553e94457">tsl2561_wake_up</a></div><div class="ttdeci">uint8_t tsl2561_wake_up(tsl2561_handle_t *handle)</div><div class="ttdoc">wake up the chip</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00937">driver_tsl2561.c:937</a></div></div>
<div class="ttc" id="agroup__tsl2561__example__driver_html_ga050d8ea469fb5f45927f832b8298b80f"><div class="ttname"><a href="group__tsl2561__example__driver.html#ga050d8ea469fb5f45927f832b8298b80f">TSL2561_BASIC_DEFAULT_GAIN</a></div><div class="ttdeci">#define TSL2561_BASIC_DEFAULT_GAIN</div><div class="ttdoc">tsl2561 basic example default definition</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561__basic_8h_source.html#l00057">driver_tsl2561_basic.h:57</a></div></div>
<div class="ttc" id="agroup__tsl2561__example__driver_html_ga2a2973dea9ae09effb0814bf2b9b2737"><div class="ttname"><a href="group__tsl2561__example__driver.html#ga2a2973dea9ae09effb0814bf2b9b2737">TSL2561_BASIC_DEFAULT_INTERRUPT</a></div><div class="ttdeci">#define TSL2561_BASIC_DEFAULT_INTERRUPT</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561__basic_8h_source.html#l00060">driver_tsl2561_basic.h:60</a></div></div>
<div class="ttc" id="agroup__tsl2561__example__driver_html_ga2cb134cfdc0a3115be909a64e90f5570"><div class="ttname"><a href="group__tsl2561__example__driver.html#ga2cb134cfdc0a3115be909a64e90f5570">TSL2561_BASIC_DEFAULT_INTERRUPT_LOW_THRESHOLD</a></div><div class="ttdeci">#define TSL2561_BASIC_DEFAULT_INTERRUPT_LOW_THRESHOLD</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561__basic_8h_source.html#l00062">driver_tsl2561_basic.h:62</a></div></div>
Expand All @@ -248,10 +248,10 @@
<div class="ttc" id="agroup__tsl2561__interface__driver_html_ga573ea1b7ae198af677bc3b27b6a3a2d7"><div class="ttname"><a href="group__tsl2561__interface__driver.html#ga573ea1b7ae198af677bc3b27b6a3a2d7">tsl2561_interface_iic_read</a></div><div class="ttdeci">uint8_t tsl2561_interface_iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)</div><div class="ttdoc">interface iic bus read</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561__interface__template_8c_source.html#l00075">driver_tsl2561_interface_template.c:75</a></div></div>
<div class="ttc" id="agroup__tsl2561__interface__driver_html_ga98a581f813a5c86a5ab34784144c07ab"><div class="ttname"><a href="group__tsl2561__interface__driver.html#ga98a581f813a5c86a5ab34784144c07ab">tsl2561_interface_iic_write</a></div><div class="ttdeci">uint8_t tsl2561_interface_iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)</div><div class="ttdoc">interface iic bus write</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561__interface__template_8c_source.html#l00091">driver_tsl2561_interface_template.c:91</a></div></div>
<div class="ttc" id="agroup__tsl2561__interface__driver_html_gaf1d2377fef3145b6c570f03465f2b208"><div class="ttname"><a href="group__tsl2561__interface__driver.html#gaf1d2377fef3145b6c570f03465f2b208">tsl2561_interface_delay_ms</a></div><div class="ttdeci">void tsl2561_interface_delay_ms(uint32_t ms)</div><div class="ttdoc">interface delay ms</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561__interface__template_8c_source.html#l00101">driver_tsl2561_interface_template.c:101</a></div></div>
<div class="ttc" id="agroup__tsl2561__interrupt__driver_html_ga30ba6476f18e90d6130cba741070fa67"><div class="ttname"><a href="group__tsl2561__interrupt__driver.html#ga30ba6476f18e90d6130cba741070fa67">tsl2561_set_interrupt_mode</a></div><div class="ttdeci">uint8_t tsl2561_set_interrupt_mode(tsl2561_handle_t *handle, tsl2561_interrupt_mode_t mode)</div><div class="ttdoc">set the interrupt mode</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00599">driver_tsl2561.c:599</a></div></div>
<div class="ttc" id="agroup__tsl2561__interrupt__driver_html_ga4a38a54eb4140c093349289ff7efe488"><div class="ttname"><a href="group__tsl2561__interrupt__driver.html#ga4a38a54eb4140c093349289ff7efe488">tsl2561_set_interrupt_low_threshold</a></div><div class="ttdeci">uint8_t tsl2561_set_interrupt_low_threshold(tsl2561_handle_t *handle, uint16_t ch0_raw)</div><div class="ttdoc">set the interrupt low threshold</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00833">driver_tsl2561.c:833</a></div></div>
<div class="ttc" id="agroup__tsl2561__interrupt__driver_html_ga5c07d509898fd673f9ba004f06dfa161"><div class="ttname"><a href="group__tsl2561__interrupt__driver.html#ga5c07d509898fd673f9ba004f06dfa161">tsl2561_set_interrupt_high_threshold</a></div><div class="ttdeci">uint8_t tsl2561_set_interrupt_high_threshold(tsl2561_handle_t *handle, uint16_t ch0_raw)</div><div class="ttdoc">set the interrupt high threshold</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00759">driver_tsl2561.c:759</a></div></div>
<div class="ttc" id="agroup__tsl2561__interrupt__driver_html_gad5274afdb9828fa959698c637a4d7124"><div class="ttname"><a href="group__tsl2561__interrupt__driver.html#gad5274afdb9828fa959698c637a4d7124">tsl2561_set_interrupt</a></div><div class="ttdeci">uint8_t tsl2561_set_interrupt(tsl2561_handle_t *handle, tsl2561_bool_t enable)</div><div class="ttdoc">enable or disable the chip interrupt</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00679">driver_tsl2561.c:679</a></div></div>
<div class="ttc" id="agroup__tsl2561__interrupt__driver_html_ga30ba6476f18e90d6130cba741070fa67"><div class="ttname"><a href="group__tsl2561__interrupt__driver.html#ga30ba6476f18e90d6130cba741070fa67">tsl2561_set_interrupt_mode</a></div><div class="ttdeci">uint8_t tsl2561_set_interrupt_mode(tsl2561_handle_t *handle, tsl2561_interrupt_mode_t mode)</div><div class="ttdoc">set the interrupt mode</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00593">driver_tsl2561.c:593</a></div></div>
<div class="ttc" id="agroup__tsl2561__interrupt__driver_html_ga4a38a54eb4140c093349289ff7efe488"><div class="ttname"><a href="group__tsl2561__interrupt__driver.html#ga4a38a54eb4140c093349289ff7efe488">tsl2561_set_interrupt_low_threshold</a></div><div class="ttdeci">uint8_t tsl2561_set_interrupt_low_threshold(tsl2561_handle_t *handle, uint16_t ch0_raw)</div><div class="ttdoc">set the interrupt low threshold</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00827">driver_tsl2561.c:827</a></div></div>
<div class="ttc" id="agroup__tsl2561__interrupt__driver_html_ga5c07d509898fd673f9ba004f06dfa161"><div class="ttname"><a href="group__tsl2561__interrupt__driver.html#ga5c07d509898fd673f9ba004f06dfa161">tsl2561_set_interrupt_high_threshold</a></div><div class="ttdeci">uint8_t tsl2561_set_interrupt_high_threshold(tsl2561_handle_t *handle, uint16_t ch0_raw)</div><div class="ttdoc">set the interrupt high threshold</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00753">driver_tsl2561.c:753</a></div></div>
<div class="ttc" id="agroup__tsl2561__interrupt__driver_html_gad5274afdb9828fa959698c637a4d7124"><div class="ttname"><a href="group__tsl2561__interrupt__driver.html#gad5274afdb9828fa959698c637a4d7124">tsl2561_set_interrupt</a></div><div class="ttdeci">uint8_t tsl2561_set_interrupt(tsl2561_handle_t *handle, tsl2561_bool_t enable)</div><div class="ttdoc">enable or disable the chip interrupt</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8c_source.html#l00673">driver_tsl2561.c:673</a></div></div>
<div class="ttc" id="agroup__tsl2561__link__driver_html_ga03e4a6d4860e2c37b0040e2ea029f9b2"><div class="ttname"><a href="group__tsl2561__link__driver.html#ga03e4a6d4860e2c37b0040e2ea029f9b2">DRIVER_TSL2561_LINK_DEBUG_PRINT</a></div><div class="ttdeci">#define DRIVER_TSL2561_LINK_DEBUG_PRINT(HANDLE, FUC)</div><div class="ttdoc">link debug_print function</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8h_source.html#l00235">driver_tsl2561.h:235</a></div></div>
<div class="ttc" id="agroup__tsl2561__link__driver_html_ga05ae1b592540675ef1f4b608ff648360"><div class="ttname"><a href="group__tsl2561__link__driver.html#ga05ae1b592540675ef1f4b608ff648360">DRIVER_TSL2561_LINK_IIC_WRITE</a></div><div class="ttdeci">#define DRIVER_TSL2561_LINK_IIC_WRITE(HANDLE, FUC)</div><div class="ttdoc">link iic_write function</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8h_source.html#l00219">driver_tsl2561.h:219</a></div></div>
<div class="ttc" id="agroup__tsl2561__link__driver_html_ga2566d8abdf28c60c3a1b0e54b32a8e03"><div class="ttname"><a href="group__tsl2561__link__driver.html#ga2566d8abdf28c60c3a1b0e54b32a8e03">DRIVER_TSL2561_LINK_IIC_READ</a></div><div class="ttdeci">#define DRIVER_TSL2561_LINK_IIC_READ(HANDLE, FUC)</div><div class="ttdoc">link iic_read function</div><div class="ttdef"><b>Definition:</b> <a href="driver__tsl2561_8h_source.html#l00211">driver_tsl2561.h:211</a></div></div>
Expand Down
Loading

0 comments on commit af7f003

Please sign in to comment.