The dSPACE driver interface functions are declared in the file
stm_dspace.h
. The driver includes three functions:
●stm_dspace_init()
- This function is called only once. It configures and initializes the signals defined in the ERP I/O mapping table. If mapping is invalid, a warning or an error message is generated (and sent to the dSPACE ControlDesk).
●stm_dspace_driver()
- This function is called whenever data is read from, or written to, an I/O port. Therefore, this function is called very often and affects overall efficiency.
●stm_dspace_close()
- This function should be called before closing the connection with the hardware.