Use enum instead of define for directions in yx_uint16 library.