Functions | |
uint8_t | bsp_read_byte (PRUICSS_Handle pruIcssHandle, uint16_t address) |
Read a byte value at 'Address' from ESC memory: SM mailbox (single buffer) mapped or register area. More... | |
uint16_t | bsp_read_word (PRUICSS_Handle pruIcssHandle, uint16_t address) |
Read a 16-bit value at 'Address' from ESC memory: SM mailbox (single buffer) mapped or register area. More... | |
uint32_t | bsp_read_dword (PRUICSS_Handle pruIcssHandle, uint16_t address) |
Read a 32-bit value at 'Address' from ESC memory: SM mailbox (single buffer) mapped or register area. More... | |
void | bsp_read (PRUICSS_Handle pruIcssHandle, uint8_t *pdata, uint16_t address, uint16_t len) |
Read a byte array at 'address' from ESC memory. More... | |
uint8_t | bsp_read_byte_isr (PRUICSS_Handle pruIcssHandle, uint16_t address) |
Read a byte value at 'Address' from ESC process data memory: SM buffer (3-buffer) mapped area. More... | |
uint16_t | bsp_read_word_isr (PRUICSS_Handle pruIcssHandle, uint16_t address) |
Read a 16-bit value at 'Address' from ESC process data memory: SM buffer (3-buffer) mapped area. More... | |
uint32_t | bsp_read_dword_isr (PRUICSS_Handle pruIcssHandle, uint16_t address) |
Read a 32-bit value at 'Address' from ESC process data memory: SM buffer (3-buffer) mapped area. More... | |
void | bsp_pdi_post_read_indication (PRUICSS_Handle pruIcssHandle, uint16_t address, uint16_t length) |
Invoked after reading a register or mailbox buffer from PDI side . More... | |
void | bsp_pdi_write_indication (PRUICSS_Handle pruIcssHandle, uint16_t address, uint16_t length, uint16_t value) |
Invoked after writing a register or mailbox buffer from PDI side . More... | |
void | bsp_write_byte (PRUICSS_Handle pruIcssHandle, uint8_t val, uint16_t address) |
Write a byte value at 'address' in ESC memory. More... | |
void | bsp_write_word (PRUICSS_Handle pruIcssHandle, uint16_t val, uint16_t address) |
Write a 16-bit value at 'address' in ESC memory. More... | |
void | bsp_write_dword (PRUICSS_Handle pruIcssHandle, uint32_t val, uint16_t address) |
Write a 32-bit value at 'address' in ESC memory. More... | |
void | bsp_write (PRUICSS_Handle pruIcssHandle, uint8_t *pdata, uint16_t address, uint16_t len) |
Write 'len' bytes from pdata to 'address' in ESC memory. More... | |
uint32_t | bsp_pruss_mdioreg_read (PRUICSS_Handle pruIcssHandle, uint32_t regoffset) |
Read a 32-bit value from PRU-ICSS MDIO register at 'regoffset'. More... | |
void | bsp_pruss_mdioreg_write (PRUICSS_Handle pruIcssHandle, uint32_t val, uint32_t regoffset) |
Write a 32-bit value from PRU-ICSS MDIO register at 'regoffset'. More... | |
uint32_t | bsp_pruss_iepreg_read (PRUICSS_Handle pruIcssHandle, uint32_t regoffset) |
Read a 32-bit value from PRU-ICSS IEP register at 'regoffset'. More... | |
void | bsp_pruss_iepreg_write (PRUICSS_Handle pruIcssHandle, uint32_t val, uint32_t regoffset) |
Write a 32-bit value from PRU-ICSS IEP register at 'regoffset'. More... | |
void | bsp_pruss_cmd_intfc_write_word (uint16_t val, volatile uint16_t *ptr) |
Read a 16-bit value from PRU-ICSS IEP command interface. More... | |
uint16_t | bsp_pruss_cmd_intfc_read_word (volatile uint16_t *ptr) |
Read a 16-bit value from PRU-ICSS IEP command interface. More... | |
uint8_t | bsp_get_pdi_access_perm (uint16_t address, uint8_t access) |
Checks if the PDI register [byte] has the requested access permission and returns the result. More... | |
uint8_t | bsp_pdi_access_perm_word (uint16_t address, uint8_t access) |
Checks if the PDI register [Two bytes] has the requested access permission and returns the result. More... | |
uint8_t | bsp_pdi_access_perm_dword (uint16_t address, uint8_t access) |
Checks if the PDI register [Four bytes] has the requested access permission and returns the result. More... | |
uint8_t | bsp_pdi_access_perm_array (uint16_t address, uint8_t access, uint16_t size) |
Checks if all PDI registers starting from 'address' has the requested access permission and returns the result. More... | |
void | bsp_set_pdi_perm_read_only (uint16_t *perm_array, uint16_t address) |
Set the PDI register [byte] access permission to read only. More... | |
void | bsp_set_pdi_perm_read_write (uint16_t *perm_array, uint16_t address) |
Set the PDI register [byte] access permission to read and write. More... | |
uint8_t | bsp_is_pdi_perm_read_only (uint16_t *perm_array, uint16_t address) |
Checks if the PDI register [byte] has read only access permission and returns the result. More... | |
uint32_t | bsp_get_pdi_read_access_fail_cnt () |
Returns the count of PDI read access failures. More... | |
uint32_t | bsp_get_pdi_write_access_fail_cnt () |
Returns the count of PDI write access failures. More... | |
uint8_t bsp_read_byte | ( | PRUICSS_Handle | pruIcssHandle, |
uint16_t | address | ||
) |
Read a byte value at 'Address' from ESC memory: SM mailbox (single buffer) mapped or register area.
pruIcssHandle | PRUSS Handle |
address | ESC address to read from PDI |
Value | at address |
uint16_t bsp_read_word | ( | PRUICSS_Handle | pruIcssHandle, |
uint16_t | address | ||
) |
Read a 16-bit value at 'Address' from ESC memory: SM mailbox (single buffer) mapped or register area.
pruIcssHandle | PRUSS Handle |
address | ESC address to read from PDI |
Value | at address |
uint32_t bsp_read_dword | ( | PRUICSS_Handle | pruIcssHandle, |
uint16_t | address | ||
) |
Read a 32-bit value at 'Address' from ESC memory: SM mailbox (single buffer) mapped or register area.
pruIcssHandle | PRUSS Handle |
address | ESC address to read from PDI |
Value | at address |
void bsp_read | ( | PRUICSS_Handle | pruIcssHandle, |
uint8_t * | pdata, | ||
uint16_t | address, | ||
uint16_t | len | ||
) |
Read a byte array at 'address' from ESC memory.
pruIcssHandle | PRUSS Handle |
pdata | Pointer to the array in application |
address | ESC address to read from PDI |
len | Number of bytes to read from ESC memory |
uint8_t bsp_read_byte_isr | ( | PRUICSS_Handle | pruIcssHandle, |
uint16_t | address | ||
) |
Read a byte value at 'Address' from ESC process data memory: SM buffer (3-buffer) mapped area.
pruIcssHandle | PRUSS Handle |
address | ESC Address to read from PDI |
Value | at address |
uint16_t bsp_read_word_isr | ( | PRUICSS_Handle | pruIcssHandle, |
uint16_t | address | ||
) |
Read a 16-bit value at 'Address' from ESC process data memory: SM buffer (3-buffer) mapped area.
pruIcssHandle | PRUSS Handle |
address | ESC address to read from PDI |
Value | at address |
uint32_t bsp_read_dword_isr | ( | PRUICSS_Handle | pruIcssHandle, |
uint16_t | address | ||
) |
Read a 32-bit value at 'Address' from ESC process data memory: SM buffer (3-buffer) mapped area.
pruIcssHandle | PRUSS Handle |
address | ESC address to read from PDI |
Value | at address |
void bsp_pdi_post_read_indication | ( | PRUICSS_Handle | pruIcssHandle, |
uint16_t | address, | ||
uint16_t | length | ||
) |
Invoked after reading a register or mailbox buffer from PDI side
.
Handles following registers: \n SM WD status \n AL control \n SYNC0/1 status \n SM Activate registers \n Latch0/1 time Postive/Negative edge \n Also detects read mailbox start address access from PDI side \n
pruIcssHandle | PRUSS Handle |
address | Start address of ESC read from PDI |
length | Length of ESC read from PDI |
void bsp_pdi_write_indication | ( | PRUICSS_Handle | pruIcssHandle, |
uint16_t | address, | ||
uint16_t | length, | ||
uint16_t | value | ||
) |
Invoked after writing a register or mailbox buffer from PDI side
.
Handles following registers: \n AL status \n SM PDI control registers \n Also detects write mailbox start address access from PDI side \n
pruIcssHandle | PRUSS Handle |
address | Start address of ESC write from PDI |
length | Length of ESC write from PDI |
value | Value to be written? |
void bsp_write_byte | ( | PRUICSS_Handle | pruIcssHandle, |
uint8_t | val, | ||
uint16_t | address | ||
) |
Write a byte value at 'address' in ESC memory.
pruIcssHandle | PRUSS Handle |
val | 8-bit value to write |
address | ESC address read from PDI |
void bsp_write_word | ( | PRUICSS_Handle | pruIcssHandle, |
uint16_t | val, | ||
uint16_t | address | ||
) |
Write a 16-bit value at 'address' in ESC memory.
pruIcssHandle | PRUSS Handle |
val | 16-bit value to write |
address | ESC address read from PDI |
void bsp_write_dword | ( | PRUICSS_Handle | pruIcssHandle, |
uint32_t | val, | ||
uint16_t | address | ||
) |
Write a 32-bit value at 'address' in ESC memory.
pruIcssHandle | PRUSS Handle |
val | 32-bit value to write |
address | ESC address read from PDI |
void bsp_write | ( | PRUICSS_Handle | pruIcssHandle, |
uint8_t * | pdata, | ||
uint16_t | address, | ||
uint16_t | len | ||
) |
Write 'len' bytes from pdata to 'address' in ESC memory.
pruIcssHandle | PRUSS Handle |
pdata | Pointer to byte array in application |
address | ESC address read from PDI |
len | Length of data |
uint32_t bsp_pruss_mdioreg_read | ( | PRUICSS_Handle | pruIcssHandle, |
uint32_t | regoffset | ||
) |
Read a 32-bit value from PRU-ICSS MDIO register at 'regoffset'.
pruIcssHandle | PRUSS Handle |
regoffset | PRU-ICSS MDIO register offset |
Value | read |
void bsp_pruss_mdioreg_write | ( | PRUICSS_Handle | pruIcssHandle, |
uint32_t | val, | ||
uint32_t | regoffset | ||
) |
Write a 32-bit value from PRU-ICSS MDIO register at 'regoffset'.
pruIcssHandle | PRUSS Handle |
val | 32-bit value to write to PRU-ICSS MDIO |
regoffset | PRU-ICSS MDIO register offset |
uint32_t bsp_pruss_iepreg_read | ( | PRUICSS_Handle | pruIcssHandle, |
uint32_t | regoffset | ||
) |
Read a 32-bit value from PRU-ICSS IEP register at 'regoffset'.
pruIcssHandle | PRUSS Handle |
regoffset | PRU-ICSS IEP register offset |
Read | value |
void bsp_pruss_iepreg_write | ( | PRUICSS_Handle | pruIcssHandle, |
uint32_t | val, | ||
uint32_t | regoffset | ||
) |
Write a 32-bit value from PRU-ICSS IEP register at 'regoffset'.
pruIcssHandle | PRUSS Handle |
val | 32-bit value to write to PRU-ICSS IEP |
regoffset | PRU-ICSS MDIO register offset |
void bsp_pruss_cmd_intfc_write_word | ( | uint16_t | val, |
volatile uint16_t * | ptr | ||
) |
Read a 16-bit value from PRU-ICSS IEP command interface.
val | 16-bit value to write |
ptr | Pointer to Host - PRU-ICSS command interface in PRU-ICSS data memory |
uint16_t bsp_pruss_cmd_intfc_read_word | ( | volatile uint16_t * | ptr | ) |
Read a 16-bit value from PRU-ICSS IEP command interface.
ptr | PRU-ICSS command interface pointer |
16-bit | value read |
uint8_t bsp_get_pdi_access_perm | ( | uint16_t | address, |
uint8_t | access | ||
) |
Checks if the PDI register [byte] has the requested access permission and returns the result.
address | PDI Register address |
access | Permission to be checked ( Read, Write, Read&Write ) |
1 | if the register has the requested permission, 0 if otherwise |
uint8_t bsp_pdi_access_perm_word | ( | uint16_t | address, |
uint8_t | access | ||
) |
Checks if the PDI register [Two bytes] has the requested access permission and returns the result.
address | PDI Register address |
access | Permission to be checked ( Read, Write, Read&Write ) |
1 | if the register has the requested permission, 0 if otherwise |
uint8_t bsp_pdi_access_perm_dword | ( | uint16_t | address, |
uint8_t | access | ||
) |
Checks if the PDI register [Four bytes] has the requested access permission and returns the result.
address | PDI Register address |
access | Permission to be checked ( Read, Write, Read&Write ) |
1 | if the register has the requested permission, 0 if otherwise |
uint8_t bsp_pdi_access_perm_array | ( | uint16_t | address, |
uint8_t | access, | ||
uint16_t | size | ||
) |
Checks if all PDI registers starting from 'address' has the requested access permission and returns the result.
address | PDI Register address |
access | Permission to be checked ( Read, Write, Read&Write ) |
size | Number of register bytes |
1 | if the register has the requested permission, 0 if otherwise |
void bsp_set_pdi_perm_read_only | ( | uint16_t * | perm_array, |
uint16_t | address | ||
) |
Set the PDI register [byte] access permission to read only.
perm_array | Pointer to the Permissions array |
address | PDI Register address |
void bsp_set_pdi_perm_read_write | ( | uint16_t * | perm_array, |
uint16_t | address | ||
) |
Set the PDI register [byte] access permission to read and write.
perm_array | Pointer to the Permissions array |
address | PDI Register address |
uint8_t bsp_is_pdi_perm_read_only | ( | uint16_t * | perm_array, |
uint16_t | address | ||
) |
Checks if the PDI register [byte] has read only access permission and returns the result.
perm_array | Pointer to the Permissions array |
address | PDI Register address |
1 | if the register has read only permission, 0 if otherwise |
uint32_t bsp_get_pdi_read_access_fail_cnt | ( | ) |
Returns the count of PDI read access failures.
PDI | read access fail count |
uint32_t bsp_get_pdi_write_access_fail_cnt | ( | ) |
Returns the count of PDI write access failures.
PDI | write access fail count |