# tecella_stimulus_segment_ex 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
int | digital_out
int | slew

## Detailed Description

tecella_stimulus_segment_ex Create an array of these and pass it to tecella_vcmd_set_ex(). This version adds new features compared to the non "ex" version, but is more likely to change between versions

## Field Documentation

int tecella_stimulus_segment_ex::digital_out

A mask for the digital out bits associated with this stimulus.

double tecella_stimulus_segment_ex::duration

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

double tecella_stimulus_segment_ex::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_ex::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.

int tecella_stimulus_segment_ex::slew

Select which slew to use right before this segment is applied.

TECELLA_STIMULUS_SEGMENT_TYPE tecella_stimulus_segment_ex::type

Type of segment.

double tecella_stimulus_segment_ex::value

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

double tecella_stimulus_segment_ex::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, each ramp step is this big (check hw props for limits).

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

- TecellaAmp.h