zephyr/include/drivers
Brooks Prumo 32e3756d66 include: Fixes #1205, C++ usage of sensor.h
I ran into issue #1205 earlier today and realized the fix was to simply
provide the proper casts.  The issue is that C++ is less permissive than
C here, erroring when trying to implicitly convert from `void *` to
`struct gpio_driver_api *`.  The same cast is done in
include/drivers/gpio.h, which is why I did that here as well.

This fix was validated by compiling my C++ application successfully and
also successfully running my app on my board, interacting with sensors.

Signed-off-by: Brooks Prumo <brooks@prumo.org>
2019-12-12 11:06:34 -06:00
..
bluetooth drivers: bluetooth: Added EVT_DATA_BUF_OVERFLOW to bt_hci_evt_is_prio 2019-10-07 12:43:46 +03:00
clock_control drivers: Add support for nRF52833 in several drivers 2019-11-13 10:33:38 -06:00
console console: Remove deprecated function console_register_line_input 2019-09-18 19:14:25 -05:00
gpio dts: esp32: Add GPIO support in DT 2019-09-25 17:39:42 +02:00
i2c/slave
ieee802154
interrupt_controller drivers/interrupt_controller/loapic.h: add IPI support 2019-10-07 19:46:55 -04:00
led doc: fix misspelling in API doxygen comments 2019-10-29 06:00:14 +01:00
pcie
timer include: rearrange for standard use of extern "C" in various headers 2019-08-13 18:00:31 +02:00
usb
wifi
adc.h adc: Trivial style cleanup 2019-09-30 12:20:39 -05:00
can.h drivers: CAN: Limit the DLC to 8 2019-11-06 21:00:45 +01:00
clock_control.h drivers: clock_control: clock_control_on should be blocking 2019-12-09 12:50:36 -05:00
counter.h drivers: counter: remove deprecated functions 2019-09-12 13:14:12 -05:00
display.h
dma.h
eeprom.h drivers: eeprom: add API for EEPROM devices 2019-11-07 16:32:15 -05:00
entropy.h
espi.h global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
flash.h
gna.h
gpio.h gpio: Clean up API documentation 2019-09-18 13:28:58 +08:00
hwinfo.h
i2c.h i2c: Remove deprecated functions 2019-09-11 11:17:46 -05:00
i2s.h include: rearrange for standard use of extern "C" in various headers 2019-08-13 18:00:31 +02:00
ipm.h ipm: Correct IPM API error codes 2019-12-10 10:26:38 -05:00
kscan.h doc: fix misspelling in API doxygen comments 2019-10-29 06:00:14 +01:00
led_strip.h
led.h
pinmux.h
ps2.h API: ps2 : Add API for PS/2 devices 2019-09-18 13:23:52 +08:00
pwm.h include/drivers: Removing legacy leftovers in PWM header 2019-08-23 23:51:28 +02:00
sensor.h include: Fixes #1205, C++ usage of sensor.h 2019-12-12 11:06:34 -06:00
spi.h
uart.h driver: uart: make deprecation effective 2019-11-07 12:44:15 -06:00
video-controls.h drivers: Add video API 2019-10-25 15:13:53 -05:00
video.h doc: fix misspelling in API doxygen comments 2019-10-29 06:00:14 +01:00
watchdog.h drivers: watchdog: Trivial style cleanup 2019-09-24 11:40:53 -07:00