firmware  v0.1.2
Chromation Spectrometer Dev-Kit
Functions
Usb_faked.c File Reference

Faked calls record themselves in mock. More...

#include "Usb_faked.h"
#include "Mock.h"
#include "Usb.h"

Go to the source code of this file.

Functions

static RecordedCallRecord__FtClockDatabus (uint8_t arg1)
 
void _FtClockDatabus_fake (uint8_t direction)
 
static RecordedCallRecord__FtReadDatabus (uint8_t *arg1)
 
void _FtReadDatabus_fake (uint8_t *pbyte)
 
static RecordedCallRecord__FtWriteDatabus (uint8_t arg1)
 
void _FtWriteDatabus_fake (uint8_t byte)
 
static RecordedCallRecord__FtDatabusPinDirection (uint8_t arg1)
 
void _FtDatabusPinDirection_fake (uint8_t pin_direction)
 
static RecordedCallRecord_FtSelectFT221X (void)
 
void FtSelectFT221X_fake (void)
 
static RecordedCallRecord_FtBusTurnaround (void)
 
void FtBusTurnaround_fake (void)
 
static RecordedCallRecord_FtIsOk (void)
 
bool FtIsOk_fake (void)
 
static RecordedCallRecord_FtRead (uint8_t *arg1)
 
void FtRead_fake (uint8_t *pbyte)
 
static RecordedCallRecord_FtWrite (uint8_t arg1)
 
void FtWrite_fake (uint8_t byte)
 
static RecordedCallRecord_FtUnselectFT221X (void)
 
void FtUnselectFT221X_fake (void)
 

Detailed Description

Faked calls record themselves in mock.


Tests access mock to see what the function under test does:

Definition in file Usb_faked.c.

Function Documentation

◆ _FtClockDatabus_fake()

void _FtClockDatabus_fake ( uint8_t  direction)

Fake records calls made by function under test.

Record:

  • call name
  • arg1

Definition at line 54 of file Usb_faked.c.

◆ _FtDatabusPinDirection_fake()

void _FtDatabusPinDirection_fake ( uint8_t  pin_direction)

Fake records calls made by function under test.

Record:

  • call name
  • arg1

Definition at line 114 of file Usb_faked.c.

◆ _FtReadDatabus_fake()

void _FtReadDatabus_fake ( uint8_t *  pbyte)

Fake records calls made by function under test.

Record:

  • call name
  • arg1

Definition at line 74 of file Usb_faked.c.

◆ _FtWriteDatabus_fake()

void _FtWriteDatabus_fake ( uint8_t  byte)

Fake records calls made by function under test.

Record:

  • call name
  • arg1

Definition at line 94 of file Usb_faked.c.

◆ FtBusTurnaround_fake()

void FtBusTurnaround_fake ( void  )

Fake records calls made by function under test.

Record:

  • call name

Definition at line 147 of file Usb_faked.c.

◆ FtIsOk_fake()

bool FtIsOk_fake ( void  )

Fake records calls made by function under test.

Record:

  • call name

Definition at line 162 of file Usb_faked.c.

◆ FtRead_fake()

void FtRead_fake ( uint8_t *  pbyte)

Fake records calls made by function under test.

Record:

  • call name
  • arg1

Definition at line 182 of file Usb_faked.c.

◆ FtSelectFT221X_fake()

void FtSelectFT221X_fake ( void  )

Fake records calls made by function under test.

Record:

  • call name

Definition at line 132 of file Usb_faked.c.

◆ FtUnselectFT221X_fake()

void FtUnselectFT221X_fake ( void  )

Fake records calls made by function under test.

Record:

  • call name

Definition at line 218 of file Usb_faked.c.

◆ FtWrite_fake()

void FtWrite_fake ( uint8_t  byte)

Fake records calls made by function under test.

Record:

  • call name
  • arg1

Definition at line 202 of file Usb_faked.c.