Loading...
Searching...
No Matches

Device descriptor definition for SDS011 Laser Dust Sensor. More...

Detailed Description

Device descriptor definition for SDS011 Laser Dust Sensor.

Definition at line 92 of file sds011.h.

#include <sds011.h>

Data Fields

sds011_params_t params
 parameters for SDS011 device
 
mutex_t dev_lock
 mutex to synchronize device access
 
mutex_t cb_lock
 mutex to synchronize callbacks
 
sds011_callback_t cb
 callback deliver values async
 
void * cbctx
 user context for the callback
 
uint16_t checksum
 iteratively calculated checksum
 
uint8_t rx_mem [SDS011_FRAME_RECV_LEN]
 receive buffer
 
uint8_t pos
 receive buffer position counter
 

Field Documentation

◆ cb

sds011_callback_t sds011_t::cb

callback deliver values async

Definition at line 96 of file sds011.h.

◆ cb_lock

mutex_t sds011_t::cb_lock

mutex to synchronize callbacks

Definition at line 95 of file sds011.h.

◆ cbctx

void* sds011_t::cbctx

user context for the callback

Definition at line 97 of file sds011.h.

◆ checksum

uint16_t sds011_t::checksum

iteratively calculated checksum

Definition at line 98 of file sds011.h.

◆ dev_lock

mutex_t sds011_t::dev_lock

mutex to synchronize device access

Definition at line 94 of file sds011.h.

◆ params

sds011_params_t sds011_t::params

parameters for SDS011 device

Definition at line 93 of file sds011.h.

◆ pos

uint8_t sds011_t::pos

receive buffer position counter

Definition at line 100 of file sds011.h.

◆ rx_mem

uint8_t sds011_t::rx_mem[SDS011_FRAME_RECV_LEN]

receive buffer

Definition at line 99 of file sds011.h.


The documentation for this struct was generated from the following file: