AM263Px Motor Control SDK  2025.00.00
bissc_api.h File Reference

Go to the source code of this file.

Functions

void bissc_params_init (bissc_params *params)
 Initialize the parameters data structure with defaults. More...
 
bissc_handle bissc_init (uint32_t index, const bissc_params *bissc_params)
 Initialize a BiSS-C instance. More...
 
void bissc_deinit (bissc_handle handle)
 De-initialize a BiSS-C instance. More...
 
int32_t bissc_command_process (bissc_handle handle)
 Send the BiSS-C command and wait till firmware acknowledges. More...
 
int32_t bissc_command_send (bissc_handle handle)
 Trigger sending the BiSS-C command in PRU. More...
 
int32_t bissc_command_wait (bissc_handle handle)
 Wait till PRU finishes BiSS-C transaction. More...
 
int32_t bissc_get_pos (bissc_handle handle)
 Get single cycle BiSS-C position data. More...
 
int32_t bissc_config_clock (bissc_handle handle, bissc_clk_cfg *clk_cfg)
 Configure BiSS-C clock configuration into PRU-ICSS register, enable load share (if needed), and indicate firmware to measure the delay again. More...
 
int32_t bissc_config_channel (bissc_handle handle, uint8_t mask, uint8_t total_channels)
 Select channel to be used by BiSS-C receiver. More...
 
int32_t bissc_wait_for_fw_initialization (bissc_handle handle, uint32_t loop_count)
 Wait for BiSS-C receiver firmware to initialize. More...
 
int32_t bissc_hw_init (bissc_handle handle)
 Initialize BiSS-C hardware interface. More...
 
int32_t bissc_update_max_proc_delay (bissc_handle handle)
 Update maximum processing delay value. More...
 
int32_t bissc_wait_measure_proc_delay (bissc_handle handle, uint32_t loop_count)
 Wait for BiSS-C receiver firmware to measure processing time. More...
 
int32_t bissc_set_default_initialization (bissc_handle handle)
 Set default configuration parameters for BiSS-C receiver firmware. More...
 
int32_t bissc_update_data_len (bissc_handle handle, uint32_t single_turn_len[], uint32_t multi_turn_len[], uint32_t ch_num)
 Update data length with encoder bit width for BiSS-C receiver firmware. More...
 
int32_t bissc_set_ctrl_cmd_and_process (bissc_handle handle, uint32_t ctrl_cmd[])
 Set control command and process the ctrl communication read/write. More...
 
int32_t bissc_get_enc_proc_delay (bissc_handle handle)
 Get measured processing delay of individual channel. More...
 
int32_t bissc_calc_clock (bissc_handle handle, bissc_clk_cfg *clk_cfg)
 Calculate Rx and Tx divisors for given frequency. More...
 
int32_t bissc_config_periodic_trigger_cmp_mode (bissc_handle handle)
 Configure periodic trigger operation mode using IEP compare event. More...
 
int32_t bissc_config_host_trigger (bissc_handle handle)
 Configure host trigger operation mode. More...
 
uint32_t bissc_generate_ctrl_cmd (bissc_handle handle, uint8_t ls_ch, uint8_t ctrl_write_status, uint32_t ctrl_reg_address, uint32_t ctrl_reg_data, uint32_t ctrl_enc_id)
 Generate control communication Hex equivalent command. More...
 
uint32_t bissc_get_current_channel (bissc_handle handle, uint32_t ch_idx)
 Retrieves the current channel in use. More...
 
uint32_t bissc_get_total_channels (bissc_handle handle)
 Retrieves total number of channels configured. More...
 
int32_t bissc_clear_data_len (bissc_handle handle)
 Clears all the encoder resolution parameters. More...
 
int32_t bissc_update_clock_freq (bissc_handle handle, uint32_t frequency)
 Update the operating baud rate as specified by the user. More...
 
int32_t bissc_clock_config (bissc_handle handle, uint32_t frequency, uint32_t loop_count)
 Configure BiSS-C clock frequency. More...
 
int32_t bissc_enable_safety (bissc_handle handle, uint32_t enc_num, uint32_t ch_num)
 Enable Safety for connected BiSS-C encoder. More...
 
int32_t bissc_disable_safety (bissc_handle handle)
 Disable Safety for connected BiSS-C encoder. More...
 
const bissc_attrs * bissc_get_attrs (bissc_handle handle)
 Get pointer to BiSS-C attributes structure. More...
 
bissc_priv * bissc_get_priv (bissc_handle handle)
 Get pointer to BiSS-C private data structure. More...
 
int32_t bissc_set_encoder_timeout (bissc_handle handle, uint32_t ch_num, uint32_t encoder_timeout)
 Set encoder timeout value for a specific channel. More...
 
uint32_t bissc_get_encoder_timeout (bissc_handle handle, uint32_t ch_num)
 Get encoder timeout value for a specific channel. More...
 
int32_t bissc_config_periodic_trigger_cap_mode (bissc_handle handle)
 Configure periodic trigger CAP mode. More...
 
int32_t bissc_config_iep_cap_event (bissc_handle handle, uint8_t channel, uint8_t event_num)
 Configure IEP CAP event for periodic trigger (DMEM configuration only) More...
 
int32_t bissc_config_iep_cmp_event (bissc_handle handle, uint8_t channel, uint8_t event_num)
 Configure IEP CMP event for periodic trigger (DMEM configuration only) More...