nuttx/drivers
likun17 703bb7e7b3 sensor.c: Added new interface for obtaining and setting sensor device information.
When there is an actual physical sensor, the driver must implement the get info interface. The upper layer can obtain the actual physical sensor information through SNIOC_GET_INFO.
SNIOC_SET_INFO can only set the information of the local virtual sensor, which means it is bound to the local advertisement. Remote subscribers cannot set the information.

Usage:
  struct sensor_device_info dev_info;
  orb_ioctl(fd, SNIOC_GET_INFO, (unsigned long)(uintptr_t)&dev_info);

  or:
  ret = orb_set_info(fd, &dev_info);
  ret = orb_get_info(fd, &dev_info);

Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-19 03:44:49 +08:00
..
1wire nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
analog nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
audio drivers/audio: fix samp rate conversion issue 2024-08-27 22:00:39 +08:00
bch drivers/mtd/bch: fix size_t overflow when offset > 4GB 2024-09-09 01:23:02 +08:00
can nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
clk nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
contactless nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
coresight coresight: return -EEXIST when register a device which has been registered 2024-09-13 09:09:19 +08:00
crypto nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
devicetree nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
dma Nuttx/dma: add dma framework for nuttx 2023-04-22 01:02:51 +08:00
dummy build: add initial cmake build system 2023-07-08 13:50:48 +08:00
eeprom nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
efuse nuttx: use lib_free for memory de-allocation after strdup or asprintf 2023-08-08 11:58:29 -03:00
i2c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
i2s nuttx: use sizeof instead of define or number in snprintf 2024-08-25 19:22:15 +08:00
input drivers/input: add dummy force feedback driver 2024-09-10 15:21:42 +08:00
ioexpander drivers/gpio: save memory if dont support signal 2024-09-15 11:29:55 +08:00
ipcc nuttx: use sizeof instead of define or number in snprintf 2024-08-25 19:22:15 +08:00
lcd bits.h: replace all inline defination of __set_bit/__clear_bit 2024-09-13 09:09:19 +08:00
leds drivers/leds/ws2812: Fix WS2812 pixel size 2023-12-24 16:38:06 -08:00
loop enable O_CLOEXEC explicit 2023-09-22 13:51:00 +08:00
math math/mpi: add mpi driver in math 2023-10-17 13:43:43 +08:00
misc enable O_CLOEXEC explicitly to avoid fd leak 2024-09-17 02:07:34 +08:00
mmcsd mmcsd: make a compatibility change for cmd12 and cmd23 2024-09-19 03:17:48 +08:00
modem nuttx: resolve various 'FAR' and 'CODE' issues 2024-08-26 10:21:03 +08:00
motor Fix allocated memory test 2024-06-28 09:30:42 +02:00
mtd ftl: should pre-allocate eblock for car case 2024-09-16 10:25:36 +08:00
net vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
note nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
pci drivers/net: add support for Intel I225 network card 2024-09-17 01:42:38 +08:00
pinctrl driver/pinctl: add pinctrl framework 2024-09-17 02:25:47 +08:00
pipes drivers/pipes: add fcntl(F_SETPIPE_SZ/F_GETPIPE_SZ) support 2024-09-10 11:35:15 +08:00
power nuttx/drivers:Modify errcode returned by relay_ioctl 2024-08-29 01:04:03 +08:00
rc nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
regmap drivers/regmap: add exit function interface. 2024-08-27 21:43:58 +08:00
reset drivers/reset: support rpmsg reset 2024-09-15 20:21:41 +08:00
rf build: add initial cmake build system 2023-07-08 13:50:48 +08:00
rmt nuttx: use sizeof instead of define or number in snprintf 2024-08-25 19:22:15 +08:00
rpmsg rpmsg_port_spi: set mreq to high to trigger next transmission 2024-09-17 01:55:51 +08:00
rptun drivers/rpmsg: add get_local_cpuname to rpmsg ops 2024-09-17 01:55:51 +08:00
segger drivers/segger: upgrade to v3.54 2024-07-03 17:31:23 +08:00
sensors sensor.c: Added new interface for obtaining and setting sensor device information. 2024-09-19 03:44:49 +08:00
serial serial/pci_16550: make sure that interrupts are disabled during init 2024-09-18 23:54:12 +08:00
spi spi_slave: keep consistent with the parameter of the spi_slave_receive function declaration 2024-09-13 12:27:31 +08:00
syslog ramlog: workaround the unsafe critical section 2024-09-14 13:13:39 +08:00
timers clock: Replace all ts and tick conversion functions 2024-09-12 18:14:39 +08:00
usbdev composite.c warning 2024-09-16 10:33:01 +08:00
usbhost nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
usbmisc nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
usbmonitor nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
usrsock rpmsg: make all the rpmsg services deponds on RPMSG 2024-02-18 04:09:34 -08:00
video drivers/fb: add panbuffer clear ioctl 2024-09-13 09:15:38 +08:00
virtio drivers: fix gcc14 errors for virtio 2024-09-16 11:25:40 -03:00
wireless nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
.gitignore
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
drivers_initialize.c drivers/reset: support rpmsg reset 2024-09-15 20:21:41 +08:00
Kconfig driver/pinctl: add pinctrl framework 2024-09-17 02:25:47 +08:00
Makefile driver/pinctl: add pinctrl framework 2024-09-17 02:25:47 +08:00