Internal constants etc. for the SDS011 laser dust sensor.
More...
Go to the source code of this file.
|
#define | SDS011_FRAME_SEND_LEN (19U) |
|
#define | SDS011_FRAME_RECV_LEN (10U) |
|
|
#define | SDS011_CMD_DB1_SET_DR_MODE (2U) |
|
#define | SDS011_CMD_DB1_QUERY_DATA (4U) |
|
#define | SDS011_CMD_DB1_SET_DEV_ID (5U) |
|
#define | SDS011_CMD_DB1_SET_SLEEP_WORK (6U) |
|
#define | SDS011_CMD_DB1_CHECK_FIRMWARE (7U) |
|
#define | SDS011_CMD_DB1_SET_WORK_PERIOD (8U) |
|
|
#define | SDS011_CMD_OPT_QUERY (0U) |
|
#define | SDS011_CMD_OPT_SET (1U) |
|
#define | SDS011_CMD_OPT_REPORT_ACTIVE (0U) |
|
#define | SDS011_CMD_OPT_REPORT_QUERY (1U) |
|
#define | SDS011_CMD_OPT_SLEEP (0U) |
|
#define | SDS011_CMD_OPT_WORK (1U) |
|
|
#define | SDS011_CMDID_QUERY (0xB4) |
|
#define | SDS011_RCMDID_REPLY (0xC5) |
|
#define | SDS011_RCMDID_DATA (0xC0) |
|
#define | SDS011_FRAME_TAIL (0xAB) |
|
#define | SDS011_FRAME_HEAD (0xAA) |
|
#define | SDS011_FRAME_CSUM_MSK (0xFF) |
|
|
#define | SDS011_FRAME_HEAD_IDX (0U) |
|
#define | SDS011_CMDID_IDX (1U) |
|
#define | SDS011_DB1_IDX (2U) |
|
#define | SDS011_DB2_IDX (3U) |
|
#define | SDS011_DB3_IDX (4U) |
|
#define | SDS011_DB4_IDX (5U) |
|
#define | SDS011_DB5_IDX (6U) |
|
#define | SDS011_DB6_IDX (7U) |
|
#define | SDS011_DEVID1_IDX (15U) |
|
#define | SDS011_DEVID2_IDX (16U) |
|
#define | SDS011_FRAME_SEND_TAIL_IDX (SDS011_FRAME_SEND_LEN - 1) |
|
#define | SDS011_FRAME_RECV_TAIL_IDX (SDS011_FRAME_RECV_LEN - 1) |
|
#define | SDS011_FRAME_SEND_CSUM_IDX (SDS011_FRAME_SEND_LEN - 2) |
|
#define | SDS011_FRAME_RECV_CSUM_IDX (SDS011_FRAME_RECV_LEN - 2) |
|