Files
nuttx/include/nuttx
Chip L. 075215cd5b wireless/cc1101: migrate to wlioc_rx_hdr_s and add operation modes
This commit refactors the CC1101 driver's read interface to comply with
the standard NuttX wireless character driver API and introduces extended
hardware operation modes.

- Migrate `cc1101_file_read` to accept and populate the standard
  `struct wlioc_rx_hdr_s` instead of returning raw byte arrays.
- Implement `cc1101_calc_rssi_dbm_x100` to preserve the hardware's
  0.5 dBm RSSI precision when scaling to 1/100 dBm units, eliminating
  the integer truncation loss present in the legacy calculation.
- Add `CC1101IOC_SETOPMODE` and `CC1101IOC_GETOPMODE` IOCTLs.
- Introduce four RF operation modes (`enum cc1101_opmode_e`):
  1. NORMAL: Standard packet mode with hardware filtering.
  2. PROMISCUOUS: Packet mode bypassing address filtering and retaining
     packets with CRC errors.
  3. SYNC_SERIAL: Bypasses FIFO, routes clock and data to GDO0/GDO2.
  4. ASYNC_SERIAL: Bypasses FIFO, routes async data to GDO2.
- Fix the `GS2200M_FIRST` IOCTL block offset in `wireless/ioctl.h` and
  allocate a dedicated IOCTL block for CC1101.

Signed-off-by: Chip L. <chplee@gmail.com>
2026-03-11 02:25:50 +08:00
..
2026-02-10 08:15:01 -03:00
2025-11-10 10:56:29 +01:00
2025-12-23 09:26:34 -03:00
2026-01-29 09:25:07 -03:00
2026-02-02 13:26:22 +08:00
2026-01-08 23:15:31 +08:00
2026-01-19 14:12:09 +08:00
2026-01-19 14:12:09 +08:00
2026-01-22 22:14:00 +08:00
2025-04-11 09:43:22 +08:00
2025-05-12 15:01:37 +08:00
2026-01-28 12:45:11 -03:00
2026-01-26 20:56:12 +08:00
2026-01-27 19:34:33 +08:00
2026-01-27 17:59:07 +08:00
2026-01-19 14:12:09 +08:00