1.11.2.5. Functions
Pototype: | libsu_iit(void) |
Paametes: | - |
Retu: | Retu 0 fo success, o othewise etu eo code 22 |
Desciptio: | Iitialize the LibRSU HAL API |
Pototype: | libsu_exit (void) |
Paametes: | - |
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Stop the LibRSU HAL API, ad close the Mailbox Cliet Itel FPGA IP if opeed. |
Pototype: | su_slot_cout (void) |
Paametes: | - |
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Get the umbe of defied slots. |
Pototype: | su_slot_by_ame (cha *ame) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Get slot umbe based o ame. |
Pototype: | su_slot_get_ifo (it slot, stuct su_slot_ifo *ifo) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Get the attibutes of a slot. |
Pototype: | su_slot_size (it slot) |
Paametes: |
|
Retu: | Retu the size of the slot i bytes fo success, o othewise etu eo code22 |
Desciptio: | Get the size of a slot. |
Pototype: | su_slot_pioity (it slot) |
Paametes: |
|
Retu: | Retu the pioity of the slot fo success, o othewise etu eo code22 |
Desciptio: | Get the load pioity of a slot. Pioity of zeo meas the slot has o pioity ad is disabled. The slot with pioity of oe has the highest pioity. |
Pototype: | su_slot_ease (it slot) |
Paametes: | slot – slot umbe |
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Ease all data i a slot to pepae fo pogammig. Remove the slot if it is i the CPB. |
Pototype: | su_slot_pogam_buf (it slot, void *buf, it size) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Pogam a slot usig Itel FPGA bitsteam data fom a buffe ad ete slot ito CPB as highest pioity. The slot must be eased fist. |
Pototype: | su_slot_pogam_callback(it slot, su_data_callback callback) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | This fuctio is to pogam ad veify a slot usig Itel FPGA cofig data povided by a callback fuctio. Ete the slot (patitio) ito the CPB. |
Pototype: | su_slot_veify_buf (it slot, void *buf, it size) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Veify FPGA cofig data i a slot agaist a buffe. |
Pototype: | su_slot_veify_callback(it slot, su_data_callback callback) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Veify a slot usig Itel FPGA bitsteam povided by a callback fuctio. |
Pototype: | su_slot_copy_to_buf(it slot, alt_u64 addess) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Read the data i a slot ad wite to a buffe. |
Pototype: | su_slot_eable (it slot) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Set the selected slot as the highest pioity. |
Pototype: | su_slot_disable (it slot) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Remove the selected slot fom the pioity scheme, but the slot data emais.. |
Pototype: | su_slot_load (it slot) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Request the selected slot to be loaded immediately. |
Pototype: | su_slot_load_factoy (void) |
Paametes: | - |
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Request the factoy image to be loaded immediately. |
Pototype: | su_slot_eame (it slot, cha *ame) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Reame the selected slot. |
Pototype: | su_slot_ceate (cha *ame, alt_u64 addess, usiged it size) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Ceate a ew slot to the SPT, usig uused space. |
Pototype: | su_slot_delete (it slot) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Delete the selected slot fom SPT. |
Pototype: | su_status_log (stuct su_status_ifo *ifo) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Copy fimwae status log ito the su_status_ifo stuctue. |
Pototype: | su_clea_eo_status (void) |
Paametes: | - |
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Clea the eo fields fom the cuet status log. |
Pototype: | su_dcmf_vesio (alt_u32 *vesio) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Retieve the vesio of each of the fou decisio fimwae copies i flash. |
Pototype: | su_max_ety (alt_u8 *value) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Retieve the max_ety paamete fom flash. |
Pototype: | su_dcmf_status (it *status) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Detemie whethe decisio fimwae copies ae coupted i flash, with the cuetly used decisio fimwae beig used as efeece. The status is a aay of fou values, oe fo each decisio fimwae copy. A value of 0 meas the copy is fie, aythig else meas the copy is coupted. |
Pototype: | su_ceate_empty_cpb (void) |
Paametes: | - |
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Ceate a empty CPB, which icludes the CPB heade oly. All eties ae maked as uused. |
Pototype: | su_estoe_cpb (alt_u64 addess) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Restoe CPB fom a buffe i memoy. The buffe must cotai the 4096 bytes of CPB data, followed by 4 bytes cotaiig the CRC32 checksum of the data. |
Pototype: | su_save_cpb (alt_u64 addess) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Save CPB to a memoy buffe. A total of 4100 bytes ae witte: 4096 bytes fo the data, plus 4 bytes with a CRC32 checksum of the data. |
Pototype: | su_estoe_spt (alt_u64 addess) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Restoe SPT fom a buffe i memoy. The buffe must cotai the 4096 bytes of SPT data, followed by 4 bytes cotaiig the CRC32 checksum of the data. |
Pototype: | su_save_spt (alt_u64 addess) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Save SPT to a addess i memoy. A total of 4100 bytes ae witte: 4096 bytes fo the data, plus 4 bytes with a CRC32 checksum of the data. |
Pototype: | su_uig_factoy (it *factoy) |
Paametes: |
|
Retu: | Retu 0 fo success, o othewise etu eo code22 |
Desciptio: | Detemie if cuet uig image is factoy image. |