# tecella_stimulus_segment Struct Reference

`#include <TecellaAmp.h>`

## Data Fields
TECELLA_STIMULUS_SEGMENT_TYPE | type
double | value
double | value_delta
double | duration
double | duration_delta
int | ramp_steps

## Detailed Description

tecella_stimulus_segment Create an array of these and pass it to tecella_vcmd_set().

## Field Documentation

double tecella_stimulus_segment::duration

Duration of segment in seconds. Note: Total duration for a TECELLA_STIMULUS_SEGMENT_RAMP segment is duration*ramp_steps.

double tecella_stimulus_segment::duration_delta

Increment duration by this delta after each iteration of the vcmd. Valid only if type is TECELLA_STIMULUS_SEGMENT_DELTA.

int tecella_stimulus_segment::ramp_steps

The number of 1mV steps to take. Number of ramp steps is limited to 256. To specify up vs down, see value_delta. Valid only if type is TECELLA_STIMULUS_SEGMENT_RAMP.

TECELLA_STIMULUS_SEGMENT_TYPE tecella_stimulus_segment::type

Type of segment.

double tecella_stimulus_segment::value

Amplitude of segment in Volts (if vcmd) or Amps (if icmd).

double tecella_stimulus_segment::value_delta

If type is TECELLA_STIMULUS_SEGMENT_DELTA, increment value by this delta after each iteration of the vcmd. If type is TECELLA_STIMULUS_SEGMENT_RAMP, a negative value indicates a down ramp and a positive value indicates an up ramp.

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

- TecellaAmp.h