Classes | Typedefs | Functions | Variables
process_encoder.cpp File Reference
#include <Arduino.h>
#include "arduinodaq2pc-structs.h"
#include "config.h"
#include <Wire.h>
Include dependency graph for process_encoder.cpp:

Go to the source code of this file.

Classes

struct  EncoderStatus
 

Typedefs

typedef void(* func_ptr) (void)
 

Functions

void init_encoders (const TFrameCMD_ENCODERS_start_payload_t &cmd)
 
template<uint8_t index>
static void onEncoder_Raising_A ()
 
void processEncoders ()
 

Variables

EncoderStatus ENC_STATUS [TFrameCMD_ENCODERS_start_payload_t::NUM_ENCODERS]
 
bool ENCODERS_active = false
 
func_ptr my_encoder_ISRs [TFrameCMD_ENCODERS_start_payload_t::NUM_ENCODERS]
 
unsigned long PC_last_millis = 0
 
uint16_t PC_sampling_period_ms = 500
 

Typedef Documentation

typedef void(* func_ptr) (void)

Definition at line 110 of file process_encoder.cpp.

Function Documentation

void init_encoders ( const TFrameCMD_ENCODERS_start_payload_t cmd)

Definition at line 118 of file process_encoder.cpp.

template<uint8_t index>
static void onEncoder_Raising_A ( )
static

Definition at line 77 of file process_encoder.cpp.

void processEncoders ( )

Definition at line 159 of file process_encoder.cpp.

Variable Documentation

Definition at line 65 of file process_encoder.cpp.

bool ENCODERS_active = false

Definition at line 48 of file process_encoder.cpp.

Initial value:
=
{
&onEncoder_Raising_A<0>,
&onEncoder_Raising_A<1>
}

Definition at line 111 of file process_encoder.cpp.

unsigned long PC_last_millis = 0

Definition at line 46 of file process_encoder.cpp.

uint16_t PC_sampling_period_ms = 500

Definition at line 47 of file process_encoder.cpp.



arduino_daq
Author(s):
autogenerated on Mon Jun 10 2019 12:46:03