dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
fpga_drv.h File Reference
#include <pios_video.h>

Go to the source code of this file.

Data Structures

struct  pios_re1fpga_cfg
 

Enumerations

enum  pios_re1fpga_led_colors { PIOS_RE1FPGA_STATUS_BLUE_CUSTOM_GREEN, PIOS_RE1FPGA_STATUS_GREEN_CUSTOM_BLUE }
 
enum  pios_re1fpga_ir_protocols { PIOS_RE1FPGA_IR_PROTOCOL_OFF, PIOS_RE1FPGA_IR_PROTOCOL_ILAP, PIOS_RE1FPGA_IR_PROTOCOL_TRACKMATE }
 
enum  pios_re1fpga_buzzer_types { PIOS_RE1FPGA_BUZZER_DC, PIOS_RE1FPGA_BUZZER_AC }
 

Functions

int32_t PIOS_RE1FPGA_Init (pios_spi_t spi_id, uint32_t slave_num, const struct pios_re1fpga_cfg *cfg, bool load_config)
 
uint8_t PIOS_RE1FPGA_GetHWRevision ()
 
int32_t PIOS_RE1FPGA_SerialRxInvert (bool invert)
 
int32_t PIOS_RE1FPGA_MPTxPinMode (bool bidrectional, bool invert)
 
int32_t PIOS_RE1FPGA_MPTxPinPullUpDown (bool enable, bool pullup)
 
int32_t PIOS_RE1FPGA_SetBuzzerType (enum pios_re1fpga_buzzer_types type)
 
int32_t PIOS_RE1FPGA_Buzzer (bool enable)
 
int32_t PIOS_RE1FPGA_SetNotificationLedColor (enum pios_re1fpga_led_colors led_colors)
 
void PIOS_RE1FPGA_SetBwLevels (uint8_t black, uint8_t white)
 
int32_t PIOS_RE1FPGA_SetSyncThreshold (uint8_t threshold)
 
void PIOS_RE1FPGA_SetXOffset (int8_t x_offset)
 
void PIOS_RE1FPGA_SetXScale (uint8_t x_scale)
 
void PIOS_RE1FPGA_Set3DConfig (enum pios_video_3d_mode mode, uint8_t x_shift_right)
 
int32_t PIOS_RE1FPGA_SetIRProtocol (enum pios_re1fpga_ir_protocols ir_protocol)
 
int32_t PIOS_RE1FPGA_SetIRData (const uint8_t *ir_data, uint8_t n_bytes)