Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
Loading...
Searching...
No Matches
motion_click.h File Reference

mikrosdk interface More...

#include <stdint.h>
Include dependency graph for motion_click.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MOTION_USE_INTERRUPT   0
#define MOTION_T_TONMIN   1000 /* 1 second minimum on time */

Enumerations

enum  motion_detect_state_changes_t {
  MOTION_CH_NO_DETECT = 0 , MOTION_CH_DETECTED = 1 , MOTION_CH_NOT_PRESENT = 2 , MOTION_CH_PRESENT = 3 ,
  MOTION_CH_ERROR = 4
}
enum  motion_status { MOTION_ST_OK = 0 , MOTION_ST_FAIL = 1 }

Functions

motion_detect_state_changes_t MIKROSDK_MOTION_get_detected (void)
uint8_t MIKROSDK_MOTION_alarm_triggered (void)
void MIKROSDK_MOTION_Enable (void)
void MIKROSDK_MOTION_Disable (void)
void MIKROSDK_MOTION_pin_mapping (uint8_t enable, uint8_t output)
uint8_t MIKROSDK_MOTION_Initialise (void)
uint8_t MIKROSDK_MOTION_Reinitialise (void)
uint8_t MIKROSDK_MOTION_Acquire (uint8_t *detection_state, uint32_t *detection_time)

Detailed Description

mikrosdk interface

Macro Definition Documentation

◆ MOTION_T_TONMIN

#define MOTION_T_TONMIN   1000 /* 1 second minimum on time */

◆ MOTION_USE_INTERRUPT

#define MOTION_USE_INTERRUPT   0

Enumeration Type Documentation

◆ motion_detect_state_changes_t

Enumerator
MOTION_CH_NO_DETECT 
MOTION_CH_DETECTED 
MOTION_CH_NOT_PRESENT 
MOTION_CH_PRESENT 
MOTION_CH_ERROR 

◆ motion_status

Enumerator
MOTION_ST_OK 
MOTION_ST_FAIL 

Function Documentation

◆ MIKROSDK_MOTION_Acquire()

uint8_t MIKROSDK_MOTION_Acquire ( uint8_t * detection_state,
uint32_t * detection_time )

◆ MIKROSDK_MOTION_alarm_triggered()

uint8_t MIKROSDK_MOTION_alarm_triggered ( void )

◆ MIKROSDK_MOTION_Disable()

void MIKROSDK_MOTION_Disable ( void )

◆ MIKROSDK_MOTION_Enable()

void MIKROSDK_MOTION_Enable ( void )

◆ MIKROSDK_MOTION_get_detected()

motion_detect_state_changes_t MIKROSDK_MOTION_get_detected ( void )

◆ MIKROSDK_MOTION_Initialise()

uint8_t MIKROSDK_MOTION_Initialise ( void )

◆ MIKROSDK_MOTION_pin_mapping()

void MIKROSDK_MOTION_pin_mapping ( uint8_t enable,
uint8_t output )

◆ MIKROSDK_MOTION_Reinitialise()

uint8_t MIKROSDK_MOTION_Reinitialise ( void )