Searched refs:mpsse (Results 1 – 5 of 5) sorted by relevance
/system/tpm/trunks/ftdi/ |
D | mpsse.c | 60 struct mpsse_context* mpsse = NULL; in MPSSE() local 63 mpsse = Open(supported_devices[i].vid, supported_devices[i].pid, mode, in MPSSE() 65 if (mpsse) { in MPSSE() 66 mpsse->description = supported_devices[i].description; in MPSSE() 67 return mpsse; in MPSSE() 127 struct mpsse_context* mpsse = NULL; in OpenIndex() local 129 mpsse = malloc(sizeof(struct mpsse_context)); in OpenIndex() 130 if (!mpsse) in OpenIndex() 133 memset(mpsse, 0, sizeof(struct mpsse_context)); in OpenIndex() 136 FlushAfterRead(mpsse, 0); in OpenIndex() [all …]
|
D | support.c | 32 int raw_write(struct mpsse_context* mpsse, uint8_t* buf, int size) { 35 if (mpsse->mode) { 36 if (ftdi_write_data(&mpsse->ftdi, buf, size) == size) { 45 int raw_read(struct mpsse_context* mpsse, uint8_t* buf, int size) { in raw_read() argument 48 if (mpsse->mode) { in raw_read() 50 r = ftdi_read_data(&mpsse->ftdi, buf, size); in raw_read() 56 if (mpsse->flush_after_read) { in raw_read() 64 ftdi_usb_purge_rx_buffer(&mpsse->ftdi); in raw_read() 72 void set_timeouts(struct mpsse_context* mpsse, int timeout) { in set_timeouts() argument 73 if (mpsse->mode) { in set_timeouts() [all …]
|
D | mpsse.h | 196 void Close(struct mpsse_context* mpsse); 197 const char* ErrorString(struct mpsse_context* mpsse); 198 int SetMode(struct mpsse_context* mpsse, int endianess); 199 void EnableBitmode(struct mpsse_context* mpsse, int tf); 200 int SetClock(struct mpsse_context* mpsse, uint32_t freq); 201 int GetClock(struct mpsse_context* mpsse); 202 int GetVid(struct mpsse_context* mpsse); 203 int GetPid(struct mpsse_context* mpsse); 204 const char* GetDescription(struct mpsse_context* mpsse); 205 int SetLoopback(struct mpsse_context* mpsse, int enable); [all …]
|
D | support.h | 27 int raw_write(struct mpsse_context* mpsse, uint8_t* buf, int size); 28 int raw_read(struct mpsse_context* mpsse, uint8_t* buf, int size); 29 void set_timeouts(struct mpsse_context* mpsse, int timeout); 32 uint8_t* build_block_buffer(struct mpsse_context* mpsse, 37 int set_bits_high(struct mpsse_context* mpsse, int port); 38 int set_bits_low(struct mpsse_context* mpsse, int port); 39 int gpio_write(struct mpsse_context* mpsse, int pin, int direction); 40 int is_valid_context(struct mpsse_context* mpsse);
|
/system/tpm/trunks/ |
D | trunks.gyp | 72 'ftdi/mpsse.c',
|