Settings for registers of Joystick 3 Click driver.
More...
Settings for registers of Joystick 3 Click driver.
◆ JOYSTICK3_ADC_CHANNEL_X
#define JOYSTICK3_ADC_CHANNEL_X 0x00 |
◆ JOYSTICK3_ADC_CHANNEL_Y
#define JOYSTICK3_ADC_CHANNEL_Y 0x40 |
◆ JOYSTICK3_ADC_DATA_RESOLUTION
#define JOYSTICK3_ADC_DATA_RESOLUTION 0x0FFF |
◆ JOYSTICK3_ADC_DATA_RESOLUTION_HALF
◆ JOYSTICK3_ADC_SINGLE_ENDED
#define JOYSTICK3_ADC_SINGLE_ENDED 0x02 |
◆ JOYSTICK3_ADC_START_BIT
#define JOYSTICK3_ADC_START_BIT 0x04 |
Joystick 3 ADC calculation values.
Specified ADC calculation values of Joystick 3 Click driver.
◆ JOYSTICK3_ANGLE_POSITION_STEP
#define JOYSTICK3_ANGLE_POSITION_STEP 45.0f |
◆ JOYSTICK3_ANGLE_ZERO_OFFSET
#define JOYSTICK3_ANGLE_ZERO_OFFSET 180.0 |
◆ JOYSTICK3_FULL_ANGLE
#define JOYSTICK3_FULL_ANGLE 360.0f |
◆ JOYSTICK3_NEUTRAL_POSITION_OFFSET
◆ JOYSTICK3_PI_RAD_OFFSET
#define JOYSTICK3_PI_RAD_OFFSET 1.0 |
◆ JOYSTICK3_POSITION_DOWN
#define JOYSTICK3_POSITION_DOWN 5 |
◆ JOYSTICK3_POSITION_LEFT
#define JOYSTICK3_POSITION_LEFT 7 |
◆ JOYSTICK3_POSITION_LOWER_LEFT
#define JOYSTICK3_POSITION_LOWER_LEFT 6 |
◆ JOYSTICK3_POSITION_LOWER_RIGHT
#define JOYSTICK3_POSITION_LOWER_RIGHT 4 |
◆ JOYSTICK3_POSITION_NEUTRAL
#define JOYSTICK3_POSITION_NEUTRAL 0 |
Joystick 3 position values.
Specified position values of Joystick 3 Click driver.
◆ JOYSTICK3_POSITION_RIGHT
#define JOYSTICK3_POSITION_RIGHT 3 |
◆ JOYSTICK3_POSITION_UP
#define JOYSTICK3_POSITION_UP 1 |
◆ JOYSTICK3_POSITION_UPPER_LEFT
#define JOYSTICK3_POSITION_UPPER_LEFT 8 |
◆ JOYSTICK3_POSITION_UPPER_RIGHT
#define JOYSTICK3_POSITION_UPPER_RIGHT 2 |
◆ JOYSTICK3_RADIANS_TO_DEGREES
#define JOYSTICK3_RADIANS_TO_DEGREES 57.295779513 |
Joystick 3 angle and position calculation values.
Specified angle and position calculation values of Joystick 3 Click driver.
◆ JOYSTICK3_SET_DATA_SAMPLE_EDGE
Data sample selection.
This macro sets data samples for SPI modules.
- Note
- Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with joystick3_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.
◆ JOYSTICK3_SET_DATA_SAMPLE_MIDDLE
◆ JOYSTICK3_ZERO_ANGLE
#define JOYSTICK3_ZERO_ANGLE 0.0f |