interface: RX/TX direction type in API