Lines Matching +full:0 +full:x4d
25 #define PMS7003_MAGIC 0x424d
36 #define PMS7003_PM_MIN 0
55 * | 0x42 | 0x4d | cmd | 0x00 | arg | cksum msb | cksum lsb |
59 [CMD_WAKEUP] = { 0x42, 0x4d, 0xe4, 0x00, 0x01, 0x01, 0x74 },
60 [CMD_ENTER_PASSIVE_MODE] = { 0x42, 0x4d, 0xe1, 0x00, 0x00, 0x01, 0x70 },
61 [CMD_READ_PASSIVE] = { 0x42, 0x4d, 0xe2, 0x00, 0x00, 0x01, 0x71 },
62 [CMD_SLEEP] = { 0x42, 0x4d, 0xe4, 0x00, 0x00, 0x01, 0x73 },
90 return ret < 0 ? ret : -EIO; in pms7003_do_cmd()
97 return ret < 0 ? ret : 0; in pms7003_do_cmd()
188 PMS7003_CHAN(0, PM1, PMS7003_PM1_OFFSET),
196 u16 checksum = (PMS7003_MAGIC >> 8) + (u8)(PMS7003_MAGIC & 0xff) + in pms7003_calc_checksum()
200 for (i = 0; i < frame->length - PMS7003_CHECKSUM_LENGTH; i++) in pms7003_calc_checksum()
227 return 0; in pms7003_receive_buf()
236 frame->length = 0; in pms7003_receive_buf()
250 frame->expected_length = 0; in pms7003_receive_buf()
268 static const unsigned long pms7003_scan_masks[] = { 0x07, 0x00 };