from typing import List
import struct


def device_number_to_fields(device_number: int) -> List[int]:
    """
    Splits the device number (16 bits) into two bytes

    Example with device number 1000
    Full bits:      0b0000001111101000
    First 8 bits:   0b00000011 == 3
    Last 8 bits:    0b11101000 == 232

    This function will return [232, 3] because the byte order is little endian (least significant byte first)
    """
    return [byte for byte in struct.pack('<H', device_number)]