APM:Libraries
|
#include "RCOutput_PCA9685.h"
#include <cmath>
#include <dirent.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <utility>
#include <AP_HAL/AP_HAL.h>
#include "GPIO.h"
Go to the source code of this file.
Variables | |
static const AP_HAL::HAL & | hal = AP_HAL::get_HAL() |
#define PCA9685_ALL_LED_OFF_H_SHUT (1 << 4) |
Definition at line 38 of file RCOutput_PCA9685.cpp.
Referenced by Linux::RCOutput_PCA9685::set_freq().
#define PCA9685_EXTERNAL_CLOCK 24576000.f |
Definition at line 51 of file RCOutput_PCA9685.cpp.
Referenced by Linux::RCOutput_PCA9685::RCOutput_PCA9685().
#define PCA9685_INTERNAL_CLOCK (1.04f * 25000000.f) |
Definition at line 50 of file RCOutput_PCA9685.cpp.
Referenced by Linux::RCOutput_PCA9685::RCOutput_PCA9685().
#define PCA9685_MODE1_AI_BIT (1 << 5) |
Definition at line 32 of file RCOutput_PCA9685.cpp.
Referenced by Linux::RCOutput_PCA9685::set_freq().
#define PCA9685_MODE1_ALLCALL_BIT (1 << 0) |
Definition at line 37 of file RCOutput_PCA9685.cpp.
#define PCA9685_MODE1_EXTCLK_BIT (1 << 6) |
Definition at line 31 of file RCOutput_PCA9685.cpp.
Referenced by Linux::RCOutput_PCA9685::set_freq().
#define PCA9685_MODE1_RESTART_BIT (1 << 7) |
Definition at line 30 of file RCOutput_PCA9685.cpp.
Referenced by Linux::RCOutput_PCA9685::set_freq().
#define PCA9685_MODE1_SLEEP_BIT (1 << 4) |
Definition at line 33 of file RCOutput_PCA9685.cpp.
Referenced by Linux::RCOutput_PCA9685::set_freq().
#define PCA9685_MODE1_SUB1_BIT (1 << 3) |
Definition at line 34 of file RCOutput_PCA9685.cpp.
#define PCA9685_MODE1_SUB2_BIT (1 << 2) |
Definition at line 35 of file RCOutput_PCA9685.cpp.
#define PCA9685_MODE1_SUB3_BIT (1 << 1) |
Definition at line 36 of file RCOutput_PCA9685.cpp.
#define PCA9685_MODE2_INVRT_BIT (1 << 4) |
Definition at line 39 of file RCOutput_PCA9685.cpp.
#define PCA9685_MODE2_OCH_BIT (1 << 3) |
Definition at line 40 of file RCOutput_PCA9685.cpp.
#define PCA9685_MODE2_OUTDRV_BIT (1 << 2) |
Definition at line 41 of file RCOutput_PCA9685.cpp.
#define PCA9685_MODE2_OUTNE0_BIT (1 << 0) |
Definition at line 43 of file RCOutput_PCA9685.cpp.
#define PCA9685_MODE2_OUTNE1_BIT (1 << 1) |
Definition at line 42 of file RCOutput_PCA9685.cpp.
#define PCA9685_RA_ALL_LED_OFF_H 0xFD |
Definition at line 27 of file RCOutput_PCA9685.cpp.
Referenced by Linux::RCOutput_PCA9685::set_freq().
#define PCA9685_RA_ALL_LED_OFF_L 0xFC |
Definition at line 26 of file RCOutput_PCA9685.cpp.
#define PCA9685_RA_ALL_LED_ON_H 0xFB |
Definition at line 25 of file RCOutput_PCA9685.cpp.
#define PCA9685_RA_ALL_LED_ON_L 0xFA |
Definition at line 24 of file RCOutput_PCA9685.cpp.
Referenced by Linux::RCOutput_PCA9685::reset_all_channels().
#define PCA9685_RA_LED0_OFF_H 0x09 |
Definition at line 23 of file RCOutput_PCA9685.cpp.
#define PCA9685_RA_LED0_OFF_L 0x08 |
Definition at line 22 of file RCOutput_PCA9685.cpp.
#define PCA9685_RA_LED0_ON_H 0x07 |
Definition at line 21 of file RCOutput_PCA9685.cpp.
#define PCA9685_RA_LED0_ON_L 0x06 |
Definition at line 20 of file RCOutput_PCA9685.cpp.
Referenced by Linux::RCOutput_PCA9685::push().
#define PCA9685_RA_MODE1 0x00 |
Definition at line 18 of file RCOutput_PCA9685.cpp.
Referenced by Linux::RCOutput_PCA9685::set_freq().
#define PCA9685_RA_MODE2 0x01 |
Definition at line 19 of file RCOutput_PCA9685.cpp.
#define PCA9685_RA_PRE_SCALE 0xFE |
Definition at line 28 of file RCOutput_PCA9685.cpp.
Referenced by Linux::RCOutput_PCA9685::set_freq().
#define PWM_CHAN_COUNT 16 |
Definition at line 55 of file RCOutput_PCA9685.cpp.
Referenced by Linux::RCOutput_PCA9685::push(), Linux::RCOutput_PCA9685::set_freq(), and Linux::RCOutput_PCA9685::write().
|
static |
Definition at line 57 of file RCOutput_PCA9685.cpp.