#ifndef __CDDSTP_H_2019_10_17__ #define __CDDSTP_H_2019_10_17__ //============================================================================= // includes //============================================================================= #include #include //============================================================================= // definitions //============================================================================= //============================================================================= // public functions //============================================================================= namespace cdd { namespace stp { void init(); uint8 start_stop (te_cdd_stp_id stp_id, boolean start_stp); uint8 change_dirrection(te_cdd_stp_id stp_id); uint8 read_write_reg(te_cdd_stp_id stp_id, te_cdd_stp_spi_req_type spi_request, uint8 puc_addr, uint8 *puc_tx_data, uint16 *pun_rx_data); uint8 read_write_reg_all(te_cdd_stp_id stp_id, te_cdd_stp_spi_req_type spi_request, uint8* puc_tx_data, uint16* pun_rx_data, uint8* response_len); } } //============================================================================= // extern C functions //============================================================================= extern "C" void TaskCddStp_Func(); extern "C" void TaskCddStp_Init(); #endif // __CDDSTP_H_2019_10_17__