keever50 commented on issue #15856:
URL: https://github.com/apache/nuttx/issues/15856#issuecomment-2669776364

   I'm not sure what is the best way to figure out together what the best 
common interface is going to be and how to make one. What about the mailing 
list?
   But maybe this is a good starting point.
   How about the following
   
   **— IOCTL —**
   Common:
   - WLIOC_COM_FREQ // Hz
   - WLIOC_COM_PWR // Power ( in dBm or mW? )
   - WLIOC_COM_PREAMBLES // Bytes
   - WLIOC_COM_MOD // Modulation technique ( Maybe? )
   
   LoRa:
   - WLIOC_LORA_SF // Spreading factor
   - WLIOC_LORA_BW // Bandwidth
   - WLIOC_LORA_CR // Code rate
   - WLIOC_LORA_CRC // CRC enable (enables CRC bytes)
   - WLIOC_LORA_FIXED_HDR // Fixed header length (enables length byte)
   - WLIOC_LORA_SYNCWORD // Syncword bytes (Include length?)
   
   Specific implementations
   - WLIOC_model_function
   
   **— Read header —**
   - Payload bytes
   - Payload length
   - RSSI // What format?
   - SNR // What format?
   - Error // Comes from CRC or checksums
   
   Now, because IOCTL is a limited resource,
   is it a good idea to compact some parameters into a struct?
   It is done already in some implementations (including in mine).
   I configure the entire lora modulation using one struct.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to