Developer World
Spresense SDK Library v3.2.0-ebc0364
Collaboration diagram for Functions:

Functions

edge_detectf_tedge_detection_createf (float *boundary_data, int datalen, uint32_t keep_width, int type)
 
void edge_detection_deletef (edge_detectf_t *detector)
 
int edge_detectf (edge_detectf_t *detector, float *input, uint32_t len)
 
int edge_detection_resetf (edge_detectf_t *detector)
 
edge_detects_tedge_detection_creates (int16_t *boundary_data, int datalen, uint32_t keep_width, int type)
 
void edge_detection_deletes (edge_detects_t *detector)
 
int edge_detects (edge_detects_t *detector, int16_t *input, uint32_t len)
 
int edge_detection_resets (edge_detects_t *detector)
 

Detailed Description

Function Documentation

◆ edge_detection_createf()

edge_detectf_t * edge_detection_createf ( float *  boundary_data,
int  datalen,
uint32_t  keep_width,
int  type 
)

Create edge_detect instance for float data.

Parameters
[in]boundary_dataEdge boundary definition data array.
[in]datelenLength of boundary_data.
[in]keep_widthNumber of samples to keep the last value.
[in]typeType of edge. EDGE_DETECT_TYPE_RISE or EDGE_DETECT_TYPE_FALL.
Returns
instance of edge_detect. Return NULL when any error is occured.

◆ edge_detection_deletef()

void edge_detection_deletef ( edge_detectf_t detector)

Delete edge_detect instance of float data.

Parameters
[in]detectorInstance of edge_detect

◆ edge_detectf()

int edge_detectf ( edge_detectf_t detector,
float *  input,
uint32_t  len 
)

Detect edge from float data array.

Parameters
[in]detectorInstance of edge_detect
[in]inputData array to detect edge.
[in]lenLength of data array.
Returns
0 or positive value is offset position of detected edge. Negative value when no edge detected.

◆ edge_detection_resetf()

int edge_detection_resetf ( edge_detectf_t detector)

Reset an edge detection instance for reflesh.

Parameters
[in]detectorInstance of edge_detect
Returns
Return 0 when it success. Negative value is returned when any error is occured.

◆ edge_detection_creates()

edge_detects_t * edge_detection_creates ( int16_t *  boundary_data,
int  datalen,
uint32_t  keep_width,
int  type 
)

Create edge_detect instance for int16_t data.

Parameters
[in]boundary_dataEdge boundary definition data array.
[in]datelenLength of boundary_data.
[in]keep_widthNumber of samples to keep the last value.
[in]typeType of edge. EDGE_DETECT_TYPE_RISE or EDGE_DETECT_TYPE_FALL.
Returns
instance of edge_detect. Return NULL when any error is occured.

◆ edge_detection_deletes()

void edge_detection_deletes ( edge_detects_t detector)

Delete edge_detect instance of int16_t data.

Parameters
[in]detectorInstance of edge_detect

◆ edge_detects()

int edge_detects ( edge_detects_t detector,
int16_t *  input,
uint32_t  len 
)

Detect edge from int16_t data array.

Parameters
[in]detectorInstance of edge_detect
[in]inputData array to detect edge.
[in]lenLength of data array.
Returns
0 or positive value is offset position of detected edge. Negative value when no edge detected.

◆ edge_detection_resets()

int edge_detection_resets ( edge_detects_t detector)

Reset an edge detection instance for reflesh.

Parameters
[in]detectorInstance of edge_detect
Returns
Return 0 when it success. Negative value is returned when any error is occured.