All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
_vexSonar_t Struct Reference

Holds information relating to a sonar. More...

#include <vexsonar.h>

Data Fields

uint16_t time_r
 time of rising edge on receive pulse More...
 
uint16_t time_f
 time of falling edge on receive pulse More...
 
int32_t time
 receive pulse time More...
 
int16_t distance_cm
 distance calculated as cm More...
 
int16_t distance_inch
 distance calculated as inches More...
 
int16_t flags
 flags, SONAR_INSTALLED & SONAR_ENABLED More...
 
tVexDigitalPin pa
 Sonar digital pin a. More...
 
tVexDigitalPin pb
 Sonar digital pin b. More...
 
ioportid_t pa_port
 Sonar GPIO port a. More...
 
int16_t pa_pad
 Sonar GPIO pad a. More...
 
ioportid_t pb_port
 Sonar GPIO port b. More...
 
int16_t pb_pad
 Sonar GPIO pad b. More...
 

Detailed Description

Holds information relating to a sonar.

Note
pin refers to the digital pin 1 through 12, port refers to the STM32 port, GPIOA, GPIOB etc. pad refers to the bit on the digital port 0 through 15

Field Documentation

uint16_t time_r

time of rising edge on receive pulse

uint16_t time_f

time of falling edge on receive pulse

int32_t time

receive pulse time

int16_t distance_cm

distance calculated as cm

int16_t distance_inch

distance calculated as inches

int16_t flags

flags, SONAR_INSTALLED & SONAR_ENABLED

Sonar digital pin a.

Sonar digital pin b.

ioportid_t pa_port

Sonar GPIO port a.

int16_t pa_pad

Sonar GPIO pad a.

ioportid_t pb_port

Sonar GPIO port b.

int16_t pb_pad

Sonar GPIO pad b.


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