add new register define and setting, transmitmode, receivemode and other configuration functions
receiveData and sendData