Added doxygen type documnet

modified files : trap.c trap.h