Chirp SonicLib  4.5.2
Macros
ch_helper.h File Reference

Internal helper functions for operation with the Chirp ultrasonic sensor. More...

#include <stdbool.h>
#include <stdint.h>
#include "invn/icu_interface/shasta_pmut_cmds.h"

Go to the source code of this file.

Macros

#define GET_INSTRUCTION_CMD_TYPE(inst)   ((inst.cmd_config) & PMUT_CMD_BITS)
 
#define IS_INSTRUCTION_CMD_EOF(cmd)   (((cmd)&PMUT_CMD_BITS) == PMUT_CMD_EOF)
 
#define IS_INSTRUCTION_CMD_RX(cmd)   (((cmd)&PMUT_CMD_BITS) == PMUT_CMD_RX)
 
#define IS_INSTRUCTION_CMD_TX(cmd)   (((cmd)&PMUT_CMD_BITS) == PMUT_CMD_TX)
 

Detailed Description

Internal helper functions for operation with the Chirp ultrasonic sensor.