Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
config_mkk_v2.h File Reference

Read Status and Config from MKK (Mikrokopter) BLDC motor controllers. More...

#include "std.h"
#include "mcu_periph/i2c.h"
+ Include dependency graph for config_mkk_v2.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  config_mkk_v2_struct
 
struct  config_mkk_v2_eeprom_t
 

Macros

#define CONFIG_MKK_V2_MASK_SET_PWM_SCALING   0x01
 
#define CONFIG_MKK_V2_MASK_SET_CURRENT_LIMIT   0x02
 
#define CONFIG_MKK_V2_MASK_SET_TEMP_LIMIT   0x04
 
#define CONFIG_MKK_V2_MASK_SET_CURRENT_SCALING   0x08
 
#define CONFIG_MKK_V2_MASK_SET_BITCONFIG   0x10
 
#define CONFIG_MKK_V2_MASK_RESET_CAPCOUNTER   0x20
 
#define CONFIG_MKK_V2_MASK_SET_DEFAULT_PARAMS   0x40
 
#define CONFIG_MKK_V2_MASK_SET_SAVE_EEPROM   0x80
 
#define BITCONF_REVERSE_ROTATION   0x01
 
#define config_mkk_v2_ResetDefault(_v)
 
#define config_mkk_v2_SetPwmScaling(_v)
 
#define config_mkk_v2_SetCurrentLimit(_v)
 
#define config_mkk_v2_SetTempLimit(_v)
 
#define config_mkk_v2_SetCurrentScaling(_v)
 
#define config_mkk_v2_SetBitConfig(_v)
 
#define config_mkk_v2_GetConfig(_v)
 

Functions

void config_mkk_v2_init (void)
 
void config_mkk_v2_periodic_read_status (void)
 
void config_mkk_v2_periodic_telemetry (void)
 
void config_mkk_v2_send_eeprom (void)
 
void config_mkk_v2_read_eeprom (void)
 

Variables

struct config_mkk_v2_struct config_mkk_v2
 
config_mkk_v2_eeprom_t config_mkk_v2_eeprom
 

Detailed Description

Read Status and Config from MKK (Mikrokopter) BLDC motor controllers.

Definition in file config_mkk_v2.h.


Data Structure Documentation

struct config_mkk_v2_struct

Definition at line 35 of file config_mkk_v2.h.

+ Collaboration diagram for config_mkk_v2_struct:
Data Fields
uint8_t addr
int nb_err
uint8_t read_config
struct i2c_transaction trans
struct config_mkk_v2_eeprom_t

Definition at line 53 of file config_mkk_v2.h.

Data Fields
uint8_t BitConfig
uint8_t crc
uint8_t CurrentLimit
uint8_t CurrentScaling
uint8_t PwmScaling
uint8_t revision
uint8_t SetMask
uint8_t TempLimit

Macro Definition Documentation

#define BITCONF_REVERSE_ROTATION   0x01

Definition at line 76 of file config_mkk_v2.h.

#define config_mkk_v2_GetConfig (   _v)
Value:
{ \
}
struct config_mkk_v2_struct config_mkk_v2
Definition: config_mkk_v2.c:29
void config_mkk_v2_read_eeprom(void)

Definition at line 117 of file config_mkk_v2.h.

#define CONFIG_MKK_V2_MASK_RESET_CAPCOUNTER   0x20

Definition at line 72 of file config_mkk_v2.h.

#define CONFIG_MKK_V2_MASK_SET_BITCONFIG   0x10

Definition at line 71 of file config_mkk_v2.h.

#define CONFIG_MKK_V2_MASK_SET_CURRENT_LIMIT   0x02

Definition at line 68 of file config_mkk_v2.h.

#define CONFIG_MKK_V2_MASK_SET_CURRENT_SCALING   0x08

Definition at line 70 of file config_mkk_v2.h.

#define CONFIG_MKK_V2_MASK_SET_DEFAULT_PARAMS   0x40

Definition at line 73 of file config_mkk_v2.h.

#define CONFIG_MKK_V2_MASK_SET_PWM_SCALING   0x01

Definition at line 67 of file config_mkk_v2.h.

#define CONFIG_MKK_V2_MASK_SET_SAVE_EEPROM   0x80

Definition at line 74 of file config_mkk_v2.h.

#define CONFIG_MKK_V2_MASK_SET_TEMP_LIMIT   0x04

Definition at line 69 of file config_mkk_v2.h.

#define config_mkk_v2_ResetDefault (   _v)
Value:
{ \
}
config_mkk_v2_eeprom_t config_mkk_v2_eeprom
#define CONFIG_MKK_V2_MASK_SET_DEFAULT_PARAMS
Definition: config_mkk_v2.h:73
void config_mkk_v2_send_eeprom(void)
#define CONFIG_MKK_V2_MASK_SET_SAVE_EEPROM
Definition: config_mkk_v2.h:74

Definition at line 82 of file config_mkk_v2.h.

#define config_mkk_v2_SetBitConfig (   _v)
Value:
{ \
}
config_mkk_v2_eeprom_t config_mkk_v2_eeprom
#define CONFIG_MKK_V2_MASK_SET_BITCONFIG
Definition: config_mkk_v2.h:71
void config_mkk_v2_send_eeprom(void)
#define CONFIG_MKK_V2_MASK_SET_SAVE_EEPROM
Definition: config_mkk_v2.h:74

Definition at line 111 of file config_mkk_v2.h.

#define config_mkk_v2_SetCurrentLimit (   _v)
Value:
{ \
}
#define CONFIG_MKK_V2_MASK_SET_CURRENT_LIMIT
Definition: config_mkk_v2.h:68
config_mkk_v2_eeprom_t config_mkk_v2_eeprom
void config_mkk_v2_send_eeprom(void)
#define CONFIG_MKK_V2_MASK_SET_SAVE_EEPROM
Definition: config_mkk_v2.h:74

Definition at line 93 of file config_mkk_v2.h.

#define config_mkk_v2_SetCurrentScaling (   _v)
Value:
{ \
}
config_mkk_v2_eeprom_t config_mkk_v2_eeprom
void config_mkk_v2_send_eeprom(void)
#define CONFIG_MKK_V2_MASK_SET_CURRENT_SCALING
Definition: config_mkk_v2.h:70
#define CONFIG_MKK_V2_MASK_SET_SAVE_EEPROM
Definition: config_mkk_v2.h:74

Definition at line 105 of file config_mkk_v2.h.

#define config_mkk_v2_SetPwmScaling (   _v)
Value:
{ \
}
config_mkk_v2_eeprom_t config_mkk_v2_eeprom
#define CONFIG_MKK_V2_MASK_SET_PWM_SCALING
Definition: config_mkk_v2.h:67
void config_mkk_v2_send_eeprom(void)
#define CONFIG_MKK_V2_MASK_SET_SAVE_EEPROM
Definition: config_mkk_v2.h:74

Definition at line 87 of file config_mkk_v2.h.

#define config_mkk_v2_SetTempLimit (   _v)
Value:
{ \
}
config_mkk_v2_eeprom_t config_mkk_v2_eeprom
void config_mkk_v2_send_eeprom(void)
#define CONFIG_MKK_V2_MASK_SET_TEMP_LIMIT
Definition: config_mkk_v2.h:69
#define CONFIG_MKK_V2_MASK_SET_SAVE_EEPROM
Definition: config_mkk_v2.h:74

Definition at line 99 of file config_mkk_v2.h.

Function Documentation

void config_mkk_v2_periodic_read_status ( void  )

Variable Documentation

config_mkk_v2_eeprom_t config_mkk_v2_eeprom

Definition at line 114 of file config_mkk_v2.c.