예제 #1
0
파일: UL.py 프로젝트: ptweir/wjul
 def __init__(self, board):
     if board != 0:
         raise ValueError("only board 0 is supported")
     device0 = PMD.FindInterface(PMD.USB1208FS_PID)
     PMD.usbDConfigPort_USB1208FS(device0, PMD.DIO_PORTA, PMD.DIO_DIR_OUT)
     PMD.usbDConfigPort_USB1208FS(device0, PMD.DIO_PORTB, PMD.DIO_DIR_IN)
     self.devices = [device0]
예제 #2
0
파일: UL.py 프로젝트: ptweir/wjul
 def __init__(self, board):
     if board != 0:
         raise ValueError("only board 0 is supported")
     device0 = PMD.FindInterface(PMD.USB1208FS_PID)
     PMD.usbDConfigPort_USB1208FS(device0, PMD.DIO_PORTA, PMD.DIO_DIR_OUT)
     PMD.usbDConfigPort_USB1208FS(device0, PMD.DIO_PORTB, PMD.DIO_DIR_IN)
     self.devices = [device0]
예제 #3
0
파일: UL.py 프로젝트: ptweir/wjul
def cbDConfigPort(board, port, direction):
    device = _get_device(board)
    return PMD.usbDConfigPort_USB1208FS(device, port, direction)
예제 #4
0
파일: UL.py 프로젝트: ptweir/wjul
def cbDConfigPort(board, port, direction):
    device = _get_device(board)
    return PMD.usbDConfigPort_USB1208FS(device, port, direction)